summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-05-05 23:03:48 (GMT)
committerGuido van Rossum <guido@python.org>1999-05-05 23:03:48 (GMT)
commit8e40759d5ae2c879759fe7c3e35aa107f967824b (patch)
tree32dfb410f91c78847cde4ba9960eddf4bf6ef357 /Lib/lib-tk
parent3ed1be9fbd2146dc841f9c88652f9db902ac797e (diff)
downloadcpython-8e40759d5ae2c879759fe7c3e35aa107f967824b.zip
cpython-8e40759d5ae2c879759fe7c3e35aa107f967824b.tar.gz
cpython-8e40759d5ae2c879759fe7c3e35aa107f967824b.tar.bz2
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.)
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 998dd0d..2e5b69c 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -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))