X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be05b434519887d3e8c1634120d52e052b0530c1..d1b736b7968ceea4233f3fceecdb01173f68a9a3:/wxPython/samples/wxPIA_book/Chapter-09/progress_box.py?ds=inline diff --git a/wxPython/samples/wxPIA_book/Chapter-09/progress_box.py b/wxPython/samples/wxPIA_book/Chapter-09/progress_box.py index f5e0253e11..6be46c5f08 100644 --- a/wxPython/samples/wxPIA_book/Chapter-09/progress_box.py +++ b/wxPython/samples/wxPIA_book/Chapter-09/progress_box.py @@ -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()