Changeset 542

Show
Ignore:
Timestamp:
05/17/03 14:10:59 (6 years ago)
Author:
gwm
Message:

*** empty log message ***

Files:

Legend:

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

    r472 r542  
    2424#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    2525 
    26 from wxSkinLayoutObject import wx, wxSkinLayoutObject, wxSkinObjectNoData 
    27 from wxPython.lib.PyCrust import crust 
     26from pycrust import pycrust 
    2827 
    2928#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    3130#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    3231 
    33 class pycrust_crust(wxSkinLayoutObject, wxSkinObjectNoData): 
    34     #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    35     #~ Constants / Variables / Etc.  
    36     #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     32class pycrust_crust(pycrust): 
     33    pass 
    3734 
    38     default_settings = wxSkinLayoutObject.default_settings.copy() 
    39     default_settings.update({ 
    40         'wxid':       'wx.wxNewId()', 
    41         'size':     '100, 100', 
    42         'introText':'Skinned PyCrust; now that IS flaky!', 
    43         'locals':   '{}', #{"self":self}', 
    44         'rootObject': '{}', 
    45         'rootLabel': '', 
    46         'rootIsNamespace': '0', 
    47         }) 
    48  
    49     #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    50     #~ Public  
    51     #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    52  
    53     def SkinInitialize(self): 
    54         winParent = self.wxGetParentObject(wx.wxWindowPtr) 
    55         kwSettings = self.wxSettingDict(['wxid', 'style', 'pos', 'size', 'locals', 'rootObject', 'rootIsNamespace'], ['introText', 'rootLabel']) 
    56         kwSettings['intro'] = kwSettings['introText'] 
    57         del kwSettings['introText'] 
    58         self.object = crust.Crust(winParent, **kwSettings) 
    59         self.wxInitialStandardOptions() 
    60  
    61     def SkinFinalize(self): 
    62         self.wxFinalStandardOptions() 
    63