Changeset 561

Show
Ignore:
Timestamp:
06/14/03 10:31:01 (5 years ago)
Author:
sholloway
Message:

Fixed command_events to work with different event handlers, since wxMenuBar works this way

Files:

Legend:

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

    r502 r561  
    4747 
    4848    def SkinInitialize(self): 
    49         parentobject = self.wxGetParentObject(wx.wxEvtHandlerPtr) 
     49        parentobject = self.wxEvalCond('handler', None) 
     50        if parentobject is None: 
     51            parentobject = self.wxGetParentObject(wx.wxEvtHandlerPtr) 
     52        elif isinstance(parentobject, wx.wxEvtHandlerPtr): 
     53            parentobject = parentobject 
     54        elif issubclass(parentobject, wx.wxEvtHandlerPtr): 
     55            parentobject = self.wxGetParentObject(parentobject) 
    5056        eventtypes = self.wxEval('type') 
    5157        call = self.wxEval('call') 
  • trunk/RBSkinning/demo/wxPythonSkin/widgets/widgets.py

    r512 r561  
    104104                        </layout> 
    105105                    </layout> 
     106                    <label label='This is a frame mover'> <frame_mover /> </label> 
    106107                </layout>  
    107108            </panel> 
  • trunk/RBSkinning/plans/todo.txt

    r528 r561  
    11New wxPython Widgets: 
    2     wxTimeEdit 
    3     wxCalendar 
    4     wxScrollWindow 
    5     wxGauge 
    6     wxMultisash: 
     2    [.] wxTimeEdit 
     3    [.] wxScrollWindow 
     4    [.] wxMultisash: 
    75        Will be tough... 
    8     Throbber controls: 
     6 
     7New Custom Widgets: 
     8    [.] RBSkinTryoutPanel: 
     9        Be able to generate a skin on a panel over and over 
     10    [.] RBOverlayedLayout: 
     11        Position windows one atop the other... 
     12        May manage visibility 
     13    [.] RBThrobber: 
    914        Gifs, stream images, animations, ... 
    1015        Needs some thought on the event system triggers... 
    11     wxSkinTryoutPanel: 
    12         Be able to generate a skin on a panel over and over 
     16    [.] RBImagePanel: 
     17        Tiling for better skinned panels 
    1318 
    1419New Functionality: 
    15     Drag liberation, dock areas, and dock zones: 
    16         Similar to most toolbar docking applications, 
    17         But, some windows may only dock in some zones 
     20    [.] Customizeability: 
     21        [X] xmlPython 
     22        [X] Components 
     23        [.] Templates 
     24        [X] Custom Skins 
     25         
     26    [.] Drag & Locking stuff: 
     27        [.] Should be able to turn it off or add a modifier key 
     28        [.] EventSubjects 
    1829 
    19     Locking Generalization: 
     30    [.] Drag liberation, dock areas, and dock zones: 
     31        [.] Similar to most toolbar docking applications, 
     32            But, some windows may only dock in some zones 
     33        [.] EventSubjects 
     34 
     35    [.] Locking Generalization: 
    2036        So this can be reused by other toolkits and drag areas 
    21  
    22     Drag & Locking stuff: 
    23         Should be able to turn it off or add a modifier key 
    2437 
    2538Wishes: