Changeset 4546

Show
Ignore:
Timestamp:
10/04/08 08:21:32 (2 months ago)
Author:
ed
Message:

Found another place where it was assumed that an object had ControllingSizer? and ControllingSizerItem? properties, and wrapped that to catch the AttributeError?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4534 r4546  
    972972                    if splt: 
    973973                        dabo.ui.setAfter(obj, "Split", True) 
    974                 sz = obj.ControllingSizer 
    975                 itm = obj.ControllingSizerItem 
     974                try: 
     975                    sz = obj.ControllingSizer 
     976                    itm = obj.ControllingSizerItem 
     977                except AttributeError: 
     978                    sz = None 
     979                    itm = None 
    976980                if sz is not None and itm is not None: 
    977981                    sz.setItemProps(itm, sizerInfoDict)