diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-03-27 17:59:17 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-03-27 17:59:17 (GMT) |
commit | 4208d4f7574bef6cfd78e242a83aedd12442c812 (patch) | |
tree | 5e492cd61e1c8604b91eb03f5ae0a005939578c1 /Lib | |
parent | 8a79727b53196099eb706d90da0a2b35c244f107 (diff) | |
download | cpython-4208d4f7574bef6cfd78e242a83aedd12442c812.zip cpython-4208d4f7574bef6cfd78e242a83aedd12442c812.tar.gz cpython-4208d4f7574bef6cfd78e242a83aedd12442c812.tar.bz2 |
Destroy and unlink deleted NoteBook panes. Fixes #516703.
2.2.2 candidate.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/lib-tk/Tix.py | 3 |
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) |