Changeset 646

Show
Ignore:
Timestamp:
07/30/03 09:50:44 (5 years ago)
Author:
sholloway
Message:

*** empty log message ***

Files:

Legend:

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

    r502 r646  
    4949 
    5050    def Hide(self): 
    51         self.host.Show(False) 
     51        self.Show(False) 
    5252 
    5353    def OnActivate(self, evt): 
    5454        if not evt.GetActive() and self.host.IsShown(): 
    5555            self.host.Show(False) 
     56 
     57    def OnClose(self, evt): 
     58        if evt.CanVeto(): 
     59            evt.Veto() 
     60            self.Hide() 
     61        else: 
     62            evt.Skip() 
    5663 
    5764#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
     
    6673 
    6774    xmlskin = """ 
    68         <frame show='0' style='wxSIMPLE_BORDER' 
     75        <frame show='0' style='wxSIMPLE_BORDER' toplevel='0' 
     76               ctxvar='ctx.popup.host' 
    6977               skin:load='::settings' 
    70                ctxvar='ctx.popup.host' 
    7178               xmlns='http://namespaces.runeblade.com/wxPythonSkin'  
    7279               xmlns:skin='http://namespaces.runeblade.com/skin' > 
    73             <layout sizercfg='1, wxEXPAND'
    74                 <panel sizercfg='1, wxEXPAND'
     80            <layout
     81                <panel
    7582                    <skin:template expand='::contents'/> 
    7683                </panel> 
    7784            </layout> 
    7885            <event type='EVT_ACTIVATE' call='ctx.popup.OnActivate' /> 
     86            <event type='EVT_CLOSE' call='ctx.popup.OnClose' /> 
    7987        </frame> 
    8088        """