]> granicus.if.org Git - python/commitdiff
Two critical fixes to the changes that I made for Greg McFarlane --
authorGuido van Rossum <guido@python.org>
Tue, 30 Dec 1997 04:07:19 +0000 (04:07 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 30 Dec 1997 04:07:19 +0000 (04:07 +0000)
patches provided by Greg (am I glad I sent him my latest version!).

Lib/lib-tk/Tkinter.py

index 4720a03ab9959a056a017d163e51b40435bf7786..fbf90e446d52eca3bccd80e38647f2d1dc2ddd39 100644 (file)
@@ -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 = {}