Destroy and unlink deleted NoteBook panes. Fixes #516703.

2.2.2 candidate.
This commit is contained in:
Martin v. Löwis 2002-03-27 17:59:17 +00:00
parent 8a79727b53
commit 4208d4f757
1 changed files with 2 additions and 1 deletions

View File

@ -466,7 +466,6 @@ class DisplayStyle:
def delete(self):
self.tk.call(self.stylename, 'delete')
del(self)
def __setitem__(self,key,value):
self.tk.call(self.stylename, 'configure', '-%s'%key, value)
@ -1093,6 +1092,8 @@ class NoteBook(TixWidget):
def delete(self, name):
self.tk.call(self._w, 'delete', name)
self.subwidget_list[name].destroy()
del self.subwidget_list[name]
def page(self, name):
return self.subwidget(name)