summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/lib-tk')
-rwxr-xr-xLib/lib-tk/Tix.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py
index 79de234..18b8673 100755
--- a/Lib/lib-tk/Tix.py
+++ b/Lib/lib-tk/Tix.py
@@ -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)