]> git.saurik.com Git - wxWidgets.git/commitdiff
wx.ProgressDialog.Update now returns two values.
authorRobin Dunn <robin@alldunn.com>
Thu, 4 May 2006 02:15:48 +0000 (02:15 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 4 May 2006 02:15:48 +0000 (02:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/ProgressDialog.py
wxPython/docs/CHANGES.txt

index 9417209834d71da4d720030a2ac0f3641c3e3cc3..5e120a460027eb9420e90c6fd697da24bf488c8f 100644 (file)
@@ -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()
 
 #---------------------------------------------------------------------------
index 6562af449743324bd5dae530afe928b48c0c2803..e281bded0cafdbae89c8261c91a71a04478da62d 100644 (file)
@@ -120,17 +120,24 @@ source of the clipboard or DnD operation, and then you'll know which
 of the component data objects to use to access the data.
 
 Changed how the stock objects (wx.RED, wx.RED_PEN, wx.RED_BRUSH, etc.)
-are initialized.  They are now created as a wrapper object that
-initializes itself on first use (when an attribute of the object is
-requested.)  This was needed because of similar delayed initialization
+are initialized.  They are now created after the wx.App has been
+created, but before OnInit is called, so if you use any of these
+objects before the wx.App is created you will need to adjust your
+code.  This was needed because of some delayed initialization
 functionality that was implemented in wxWidgets, but the end result is
 cleaner for wxPython as well, and allowed me to remove some ugly code
-under the covers.
+previously hidden under the covers.
 
 Added wx.StandardPaths.GetDocumentsDir.
 
 Added wx.RendererNative.DrawCheckButton.
 
+wx.ProgressDialog.Update now returns a tuple of two values.  The first
+is a continue flag (what was returned before) and the second is a skip
+flag.  If the dialog has the wx.PD_CAN_SKIP flag and if the Skip
+button is clicked, then the skip flag is set to True the next time
+Update is called.
+