Changeset 503
- Timestamp:
- 04/08/03 01:01:19 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBSkinning/demo/wxPythonSkin/components/popups_simple.py
r502 r503 38 38 <layout sizercfg='1, wxEXPAND'> 39 39 <layout sizercfg='0, wxEXPAND'> 40 <button label='Show Popup Top Left' sizercfg='0, wxALL,10'>40 <button label='Show Popup (Bottom, InnerLeft)' sizercfg='0, wxALL,10'> 41 41 <command_event type='EVT_BUTTON' call='ctx.behaviormodel.ShowPopupTL' /> 42 42 </button> 43 43 <spacer sizercfg='1, wxEXPAND'/> 44 <button label='Show Popup Top Right' sizercfg='0, wxALL,10'>44 <button label='Show Popup (Bottom, InnerRight)' sizercfg='0, wxALL,10'> 45 45 <command_event type='EVT_BUTTON' call='ctx.behaviormodel.ShowPopupTR' /> 46 46 </button> … … 48 48 <text sizercfg='1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP,10'>The popup element is a good example of a compound component in the standard wxPythonSkin library.</text> 49 49 <layout sizercfg='0, wxEXPAND'> 50 <button label='Show Popup Bottom Left' sizercfg='0, wxALL,10'>50 <button label='Show Popup (Top, InnerLeft)' sizercfg='0, wxALL,10'> 51 51 <command_event type='EVT_BUTTON' call='ctx.behaviormodel.ShowPopupBL' /> 52 52 </button> 53 53 <spacer sizercfg='1, wxEXPAND'/> 54 <button label='Show Popup Bottom Right' sizercfg='0, wxALL,10'>54 <button label='Show Popup (Top, InnerRight)' sizercfg='0, wxALL,10'> 55 55 <command_event type='EVT_BUTTON' call='ctx.behaviormodel.ShowPopupBR' /> 56 56 </button> … … 104 104 105 105 def RunApp(): 106 #from RBSkinning.wxPythonSkin import wxSkinObject 107 #wxSkinObject.__debug_window_counts__ = True 106 108 application = wx.wxPySimpleApp() 107 behaviormodel = BehaviorModel()108 skin = SkinXML(skinxml, behaviormodel=behaviormodel, application=application)109 skin = SkinXML(skinxml, behaviormodel=BehaviorModel(), application=application) 110 #skin2 = SkinXML(skinxml, behaviormodel=BehaviorModel(), application=application) 109 111 return skin.context.application.MainLoop() 110 112
