Changeset 4106

Show
Ignore:
Timestamp:
06/01/08 04:58:26 (6 months ago)
Author:
ed
Message:

Added some code to prevent issues that were popping up with sizers that had DefaultSpacing? set to a positive value.

Files:

Legend:

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

    r4089 r4106  
    943943class LayoutSizerMixin(LayoutSaverMixin): 
    944944    def __init__(self, *args, **kwargs): 
     945        self.isDesignerSizer = True 
    945946        super(LayoutSizerMixin, self).__init__(*args, **kwargs) 
    946947 
     
    10331034                else: 
    10341035                    pos = 0 
    1035                 spc = kidItem.Spacing 
     1036                try: 
     1037                    spc = kidItem.Spacing 
     1038                except AttributeError: 
     1039                    spc = 0 
    10361040                kidDict = {"name" : "Spacer", 
    10371041                    "attributes" : {"size" : spc, "Name" : "spacer"},