X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27eac64cf914d84260d943650b5e8221257012cd..8ec09aacc6d8a0ef8c8e3910c46258bc20f0734b:/wxPython/demo/ProgressDialog.py diff --git a/wxPython/demo/ProgressDialog.py b/wxPython/demo/ProgressDialog.py index 9417209834..5e120a4600 100644 --- a/wxPython/demo/ProgressDialog.py +++ b/wxPython/demo/ProgressDialog.py @@ -43,10 +43,11 @@ class TestPanel(wx.Panel): wx.MilliSleep(250) if count >= max / 2: - keepGoing = dlg.Update(count, "Half-time!") + (keepGoing, skip) = dlg.Update(count, "Half-time!") else: - keepGoing = dlg.Update(count) + (keepGoing, skip) = dlg.Update(count) + dlg.Destroy() #---------------------------------------------------------------------------