diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-11-18 18:42:22 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-11-18 18:42:22 +0000 |
commit | 0e64202fd7e8802fc99fff5243b06ca4602f7f94 (patch) | |
tree | 622de682e7ae94f4aa1282af53600689eadd1ade | |
parent | e350c840b389f645b25f00f1fa35f6ea1fec03b3 (diff) | |
download | cpython-git-0e64202fd7e8802fc99fff5243b06ca4602f7f94.tar.gz |
Patch #1472877: Fix Tix subwidget name resolution.
-rwxr-xr-x | Lib/lib-tk/Tix.py | 5 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 33ac5190de..b7a0fc0776 100755 --- a/Lib/lib-tk/Tix.py +++ b/Lib/lib-tk/Tix.py @@ -421,7 +421,7 @@ class TixSubWidget(TixWidget): except: plist = [] - if (not check_intermediate) or len(plist) < 2: + if not check_intermediate: # immediate descendant TixWidget.__init__(self, master, None, None, {'name' : name}) else: @@ -437,6 +437,9 @@ class TixSubWidget(TixWidget): parent = TixSubWidget(parent, plist[i], destroy_physically=0, check_intermediate=0) + # The Tk widget name is in plist, not in name + if plist: + name = plist[-1] TixWidget.__init__(self, parent, None, None, {'name' : name}) self.destroy_physically = destroy_physically @@ -103,6 +103,8 @@ Extension Modules Library ------- +- Patch #1472877: Fix Tix subwidget name resolution. + - Patch #1594554: Always close a tkSimpleDialog on ok(), even if an exception occurs. |