]> granicus.if.org Git - python/commitdiff
Nathan Paul Simons noticed that the grid_remove() method was missing.
authorGuido van Rossum <guido@python.org>
Wed, 5 May 1999 23:03:48 +0000 (23:03 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 5 May 1999 23:03:48 +0000 (23:03 +0000)
(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)

Lib/lib-tk/Tkinter.py

index 998dd0d95ab246ba54ea0b5e47150ece79a06944..2e5b69c52fc2b89760092f9e151a093a7a7c280f 100644 (file)
@@ -1024,6 +1024,8 @@ class Grid:
        def grid_forget(self):
                self.tk.call('grid', 'forget', self._w)
        forget = grid_forget
+       def grid_remove(self):
+               self.tk.call('grid', 'remove', self._w)
        def grid_info(self):
                words = self.tk.splitlist(
                        self.tk.call('grid', 'info', self._w))