]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ProgressDialog.py
added missing button state
[wxWidgets.git] / wxPython / demo / ProgressDialog.py
index 9417209834d71da4d720030a2ac0f3641c3e3cc3..5e120a460027eb9420e90c6fd697da24bf488c8f 100644 (file)
@@ -43,10 +43,11 @@ class TestPanel(wx.Panel):
             wx.MilliSleep(250)
 
             if count >= max / 2:
-                keepGoing = dlg.Update(count, "Half-time!")
+                (keepGoing, skip) = dlg.Update(count, "Half-time!")
             else:
-                keepGoing = dlg.Update(count)
+                (keepGoing, skip) = dlg.Update(count)
 
+                
         dlg.Destroy()
 
 #---------------------------------------------------------------------------