]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxWizard.py
Always set background colour prior to any HTML rendering (this fixes assert in GTK2...
[wxWidgets.git] / wxPython / demo / wxWizard.py
index 402a307031b31ee6707243316081d88b5dee2ec5..1b1211a6ad5820f260261fec07401bde5bb0096a 100644 (file)
@@ -107,6 +107,7 @@ class TestPanel(wxPanel):
         EVT_WIZARD_PAGE_CHANGED(self, self.ID_wiz, self.OnWizPageChanged)
         EVT_WIZARD_PAGE_CHANGING(self, self.ID_wiz, self.OnWizPageChanging)
         EVT_WIZARD_CANCEL(self, self.ID_wiz, self.OnWizCancel)
+        EVT_WIZARD_FINISHED(self, self.ID_wiz, self.OnWizFinished)
 
 
     def OnWizPageChanged(self, evt):
@@ -137,6 +138,9 @@ class TestPanel(wxPanel):
             wxMessageBox("Cancelling on the first page has been prevented.", "Sorry")
             evt.Veto()
 
+    def OnWizFinished(self, evt):
+        self.log.write("OnWizFinished\n")
+        
 
     def OnRunSimpleWizard(self, evt):
         # Create the wizard and the pages
@@ -170,6 +174,10 @@ wxWizardPageSimple class can easily be used for the pages."""))
 
     def OnRunDynamicWizard(self, evt):
         # Create the wizard and the pages
+        #wizard = wxPreWizard()
+        #wizard.SetExtraStyle(wxWIZARD_EX_HELPBUTTON)
+        #wizard.Create(self, self.ID_wiz, "Simple Wizard",
+        #              images.getWizTest1Bitmap())
         wizard = wxWizard(self, self.ID_wiz, "Simple Wizard",
                           images.getWizTest1Bitmap())