Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e40759

Browse files
committed
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.)
1 parent 3ed1be9 commit 8e40759

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/lib-tk/Tkinter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,8 @@ def grid_configure(self, cnf={}, **kw):
10241024
def grid_forget(self):
10251025
self.tk.call('grid', 'forget', self._w)
10261026
forget = grid_forget
1027+
def grid_remove(self):
1028+
self.tk.call('grid', 'remove', self._w)
10271029
def grid_info(self):
10281030
words = self.tk.splitlist(
10291031
self.tk.call('grid', 'info', self._w))

0 commit comments

Comments
 (0)