diff options
author | Guido van Rossum <guido@python.org> | 1997-12-30 04:07:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-12-30 04:07:19 (GMT) |
commit | 1cd6a457d9c4aa3cea72e7ccef4b008eb5e24654 (patch) | |
tree | 9855c04d0a3209b73c57dfa27dc2804a28a549d5 /Lib | |
parent | 13704a89288e4a742f100d3005c482162a13bf59 (diff) | |
download | cpython-1cd6a457d9c4aa3cea72e7ccef4b008eb5e24654.zip cpython-1cd6a457d9c4aa3cea72e7ccef4b008eb5e24654.tar.gz cpython-1cd6a457d9c4aa3cea72e7ccef4b008eb5e24654.tar.bz2 |
Two critical fixes to the changes that I made for Greg McFarlane --
patches provided by Greg (am I glad I sent him my latest version!).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 4720a03..fbf90e4 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -679,8 +679,8 @@ class Misc: return self._getints( self.tk.call('grid', 'size', self._w)) or None size = grid_size - def grid_slaves(self, master, row=None, column=None): - args = (master,) + def grid_slaves(self, row=None, column=None): + args = () if row: args = args + ('-row', row) if column: @@ -1431,7 +1431,7 @@ class Menu(Widget): def delete(self, index1, index2=None): self.tk.call(self._w, 'delete', index1, index2) def entrycget(self, index, option): - return self.tk.call(self._w, 'entrycget', '-' + option) + return self.tk.call(self._w, 'entrycget', index, '-' + option) def entryconfigure(self, index, cnf=None, **kw): if cnf is None and not kw: cnf = {} |