Destroy and unlink deleted NoteBook panes. Fixes #516703.
2.2.2 candidate.
This commit is contained in:
parent
8a79727b53
commit
4208d4f757
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue