Dialog.py: d.num should be numeric, not string

Tkinter.py: on destroy(), remove self from master's dict of children
This commit is contained in:
Guido van Rossum 1994-08-30 12:13:44 +00:00
parent c1be9d59e4
commit f023ab0471
4 changed files with 16 additions and 10 deletions

View file

@ -679,6 +679,8 @@ class Widget(Misc, Pack, Place):
return self._w
def destroy(self):
for c in self.children.values(): c.destroy()
if self.master.children.has_key(self._name):
del self.master.children[self._name]
self.tk.call('destroy', self._w)
def _do(self, name, args=()):
return apply(self.tk.call, (self._w, name) + args)