]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/Main.py
wxGTK::wxSpinCtrl API synchronised with wxMSW
[wxWidgets.git] / utils / wxPython / demo / Main.py
index 56cc784729d85aae1e2c427ecc4512565ef64390..393b7a0bc582f93cc8ed621d5e9492e2fc56080e 100644 (file)
@@ -243,9 +243,11 @@ class wxPythonDemo(wxFrame):
 
         else:
             if os.path.exists(itemText + '.py'):
+                wxBeginBusyCursor()
                 self.GetDemoFile(itemText + '.py')
                 module = __import__(itemText, globals())
                 self.SetOverview(itemText, module.overview)
+                wxEndBusyCursor()
 
                 # in case runTest is modal, make sure things look right...
                 self.nb.Refresh();
@@ -256,7 +258,7 @@ class wxPythonDemo(wxFrame):
                     self.nb.AddPage(self.window, 'Demo')
                     #self.nb.ResizeChildren()
                     self.nb.SetSelection(2)
-                    self.nb.ResizeChildren()
+                    #self.nb.ResizeChildren()
                     #if self.window.GetAutoLayout():
                     #    self.window.Layout()