| 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 | | |
|---|