X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be05b434519887d3e8c1634120d52e052b0530c1..8f35356e49b3e669bb013452b466dd5487f7359b:/wxPython/samples/wxPIA_book/Chapter-09/progress_box.py 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()