From 551c8024959b8c1169987bb1fa6d22a7404e09be Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 8 May 2007 02:44:04 +0000 Subject: [PATCH] Adapt to ProgressDialog.Update change git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/samples/wxPIA_book/Chapter-09/progress_box.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()