]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Main.py
Other odds and ends...
[wxWidgets.git] / wxPython / demo / Main.py
index 8c7b09d6997cf5d402cf63b054b715aa52fa8ead..bc8bb4fde3ec8a2a7ffdbf2ee7c3ed2cb9e3aba4 100644 (file)
@@ -91,6 +91,8 @@ class wxPythonDemo(wxFrame):
         self.otherWin = None
         EVT_IDLE(self, self.OnIdle)
         EVT_CLOSE(self, self.OnCloseWindow)
+        EVT_ICONIZE(self, self.OnIconfiy)
+        EVT_MAXIMIZE(self, self.OnMaximize)
 
         self.Centre(wxBOTH)
         self.CreateStatusBar(1, wxST_SIZEGRIP)
@@ -403,6 +405,19 @@ class wxPythonDemo(wxFrame):
         wxGetApp().ProcessIdle()
 
 
+    #---------------------------------------------
+    def OnIconfiy(self, evt):
+        wxLogMessage("OnIconfiy")
+        evt.Skip()
+
+    #---------------------------------------------
+    def OnMaximize(self, evt):
+        wxLogMessage("OnMaximize")
+        evt.Skip()
+
+
+
+
 #---------------------------------------------------------------------------
 #---------------------------------------------------------------------------