Changeset 609

Show
Ignore:
Timestamp:
07/09/03 13:48:52 (5 years ago)
Author:
sholloway
Message:

Changes to simplify dockhost/dockcontainer relationships

Files:

Legend:

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

    r495 r609  
    4040 
    4141    def __getattribute__(self, name): 
    42         if name in ('__dict__', '_next'): 
     42        if not name: 
     43            raise AttributeError, 'name cannot be empty' 
     44        elif name in ('__dict__', '_next'): 
    4345            return object.__getattribute__(self, name) 
    4446        elif name == 'ctx': 
  • trunk/RBSkinning/RBSkinning/wxPythonSkin/dockhost.py

    r603 r609  
    4242    #default_settings['rootparent'] = 'self.wxGetParentObject(wx.wxWindowPtr)' 
    4343    #default_settings['rootlayout'] = 'self.wxGetParentObject(wx.wxWindowPtr).GetSizer()' 
     44    #default_settings['dockcontext'] = '' 
    4445 
    4546    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    6061    def SkinFinalize(self): 
    6162        self.wxStandardOptions() 
     63 
     64        if 'dockcontext' in self.settings: 
     65            self.object.dockcontext = self.context.getnamedvar(self.settings['dockcontext']) 
     66        else: 
     67            self.object.dockcontext = None 
    6268