Changeset 674

Show
Ignore:
Timestamp:
08/26/03 19:11:05 (5 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/layout.py

    r607 r674  
    5656        # Opposite is default vertical 
    5757        'opposite': (wx.wxBoxSizer, (wx.wxVERTICAL,)), 
     58        'same': (wx.wxBoxSizer, (wx.wxVERTICAL,)), 
    5859        'vertical': (wx.wxBoxSizer, (wx.wxVERTICAL,)), 
    5960        'vert': (wx.wxBoxSizer, (wx.wxVERTICAL,)), 
     
    112113                        orientation = 'horizontal' 
    113114                    else: orientation = 'vertical' 
     115            elif orientation == 'same': 
     116                orientation = 'vertical' # New Default 
     117                # Calculate the "real" value 
     118                try: GetOrientation = parentLayout.GetOrientation 
     119                except AttributeError: pass 
     120                else: 
     121                    if GetOrientation() == wx.wxVERTICAL: 
     122                        orientation = 'vertical' 
     123                    else: orientation = 'horizontal' 
    114124 
    115125        # Create the layout sizer