Nathan Paul Simons noticed that the grid_remove() method was missing.

(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)
This commit is contained in:
Guido van Rossum 1999-05-05 23:03:48 +00:00
parent 3ed1be9fbd
commit 8e40759d5a
1 changed files with 2 additions and 0 deletions

View 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))