X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83c8bcfde6906e141051345fdb6c6eb3ca4ec0a2..2742805a620cf7ef8e80e80e96f5d2e447f64279:/wxPython/demo/ProgressDialog.py?ds=sidebyside 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() #---------------------------------------------------------------------------