Sunday, April 8, 2007, 12:28:48 PM, Phil Mayes wrote:
The ProgressDialog demo does not honor the cancel button:
while keepGoing and count < max:
keepGoing = dlg.Update(count)
Update returns a tuple, so it should be
keepGoing = dlg.Update(count)[0]
Probably the interface changed but the demo didn't. The docs don't reflect
this, either. Sorry to whine instead of fixing things, but I couldn't find
how to.
Both my wxPython (msw ANSI) and my wxPython Demo are 2.8.3.0 and the
demo works here. The lines after the 'while' are:
while keepGoing and count < max:
count += 1
wx.MilliSleep(250)
if count >= max / 2:
(keepGoing, skip) = dlg.Update(count, "Half-time!")
else:
(keepGoing, skip) = dlg.Update(count)
-- tacao
No bits were harmed during the making of this e-mail.