]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/wxPIA_book/Chapter-09/progress_box.py
Send the calendar and date changed events to the datepicker ctrl first
[wxWidgets.git] / wxPython / samples / wxPIA_book / Chapter-09 / progress_box.py
index f5e0253e119eb8cdd86f21e291829e599a486640..6be46c5f08a5addaaa8184e8e610b427296cdd62 100644 (file)
@@ -19,7 +19,10 @@ class Frame(wx.Frame):
                                             | wx.PD_REMAINING_TIME)
 
         self.count += 1
-        keepGoing = self.dialog.Update(self.count)
+        if wx.VERSION < (2,7,1,1):
+            keepGoing = self.dialog.Update(self.count)
+        else:
+            (keepGoing, skip) = self.dialog.Update(self.count)            
         if not keepGoing or self.count == self.progressMax:
             self.dialog.Destroy()
             self.timer.Stop()