Python wx.EVT_ICONIZE Examples

The following are 2 code examples of wx.EVT_ICONIZE(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module wx , or try the search function .
Example #1
Source File: chronolapse.py    From chronolapse with MIT License 5 votes vote down vote up
def CreateMenu(self):
        self.Bind(wx.EVT_TASKBAR_RIGHT_UP, self.ShowMenu)
        self.Bind(wx.EVT_TASKBAR_LEFT_DCLICK, self.toggle_window_visibility)
        self.Bind(wx.EVT_MENU, self.toggle_window_visibility, id=self.wx_id)
        self.Bind(wx.EVT_MENU, self.MainFrame.iconClose, id=wx.ID_EXIT)
        if ON_WINDOWS:
            self.MainFrame.Bind(wx.EVT_ICONIZE, self.set_window_visible_off)
        else:
            self.MainFrame.Bind(wx.EVT_ICONIZE, self.iconized)
        self.menu=wx.Menu()
        self.menu.Append(self.wx_id, "Minimize","...")
        self.menu.AppendSeparator()
        self.menu.Append(wx.ID_EXIT, "Close Chronolapse") 
Example #2
Source File: __init__.py    From EventGhost with GNU General Public License v2.0 5 votes vote down vote up
def OnIconize(self, event):
        """
        Handle wx.EVT_ICONIZE
        """
        self.Iconize(event.Iconized())