Commit 4208d4f7 authored by Martin v. Löwis's avatar Martin v. Löwis

Destroy and unlink deleted NoteBook panes. Fixes #516703.

2.2.2 candidate.
parent 8a79727b
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment