Patch #1472877: Fix Tix subwidget name resolution.

This commit is contained in:
Martin v. Löwis 2006-11-18 18:42:22 +00:00
parent e350c840b3
commit 0e64202fd7
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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.