Changeset 737
- Timestamp:
- 01/28/04 19:22:42 (4 years ago)
- Files:
-
- trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust.py (modified) (1 diff)
- trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust_filling.py (modified) (1 diff)
- trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust_shell.py (modified) (1 diff)
- trunk/RBSkinning/RBSkinning/wxTools/wxMenuBuilder.py (modified) (2 diffs)
- trunk/RBSkinning/demo/wxPythonSkin/installer (added)
- trunk/RBSkinning/demo/wxPythonSkin/installer/build.py (added)
- trunk/RBSkinning/demo/wxPythonSkin/installer/pycrust.imports.py (added)
- trunk/RBSkinning/demo/wxPythonSkin/installer/pycrust.py (added)
- trunk/RBSkinning/demo/wxPythonSkin/installer/pycrust.spec (added)
- trunk/RBSkinning/demo/wxPythonSkin/widgets/popupmenu.py (modified) (1 diff)
- trunk/RBSkinning/support/Installer-hooks/hook-wxPython.py.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust.py
r634 r737 24 24 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 from wxPython.py import crust 26 27 from wxSkinLayoutObject import wx, wxSkinLayoutObject, wxSkinObjectNoData 27 try: 28 from wx.py import crust 29 except ImportError: 30 from wxPython.lib.PyCrust import crust 28 29 assert hasattr(crust, 'Crust'), "PyCrust.crust module has no attribute \"Crust\"!" 31 30 32 31 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust_filling.py
r634 r737 24 24 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 from wxPython.py import filling 26 27 from wxSkinLayoutObject import wx, wxSkinLayoutObject, wxSkinObjectNoData 27 try: 28 from wx.py import filling 29 except ImportError: 30 from wxPython.lib.PyCrust import filling 28 29 assert hasattr(filling, 'Filling'), "PyCrust.filling module has no attribute \"Filling\"!" 31 30 32 31 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk/RBSkinning/RBSkinning/wxPythonSkin/pycrust_shell.py
r634 r737 24 24 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 from wxPython.py import shell 26 27 from wxSkinLayoutObject import wx, wxSkinLayoutObject, wxSkinObjectNoData 27 try: 28 from wx.py import shell 29 except ImportError: 30 from wxPython.lib.PyCrust import shell 28 29 assert hasattr(shell, 'Shell'), "PyCrust.shell module has no attribute \"Shell\"!" 31 30 32 31 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ trunk/RBSkinning/RBSkinning/wxTools/wxMenuBuilder.py
r724 r737 51 51 uncheckedbmp = wx.wxNullBitmap 52 52 53 def __init__(self, label, help=None, accel=None, checkedbmp=None, uncheckedbmp=None ):53 def __init__(self, label, help=None, accel=None, checkedbmp=None, uncheckedbmp=None, **kw): 54 54 MenuItemBase.__init__(self) 55 55 self.SetLabel(label) 56 56 self.SetHelp(accel) 57 57 self.SetAccel(accel) 58 if 'bitmap' in kw: 59 if checkedbmp is not None: 60 raise ValueError, 'Both bitmap and checkedbmp were specified, conflicting arguments.' 61 if uncheckedbmp is not None: 62 raise ValueError, 'Both bitmap and uncheckedbmp were specified, conflicting arguments.' 63 checkedbmp = uncheckedbmp = kw['bitmap'] 58 64 self.SetBitmaps(checkedbmp, uncheckedbmp) 59 65 … … 296 302 result.SetSubMenu(submenu) 297 303 return result 304 298 305 GroupMenuItem = Menu 299 306 300 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~301 #~ Main302 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~303 304 if __name__=='__main__':305 pass306 trunk/RBSkinning/demo/wxPythonSkin/widgets/popupmenu.py
r647 r737 36 36 <frame show='True' size='300,300'> 37 37 <panel> 38 <label pos='10,10'>Right click for a popup menu< /label>38 <label pos='10,10'>Right click for a popup menu<event type='EVT_RIGHT_DOWN' call='ctx.behavior.OnShowPopup' /></label> 39 39 <event type='EVT_RIGHT_DOWN' call='ctx.behavior.OnShowPopup' /> 40 40 </panel>
