wx.ProgressDialog.Update now returns two values.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,10 +43,11 @@ class TestPanel(wx.Panel):
|
|||||||
wx.MilliSleep(250)
|
wx.MilliSleep(250)
|
||||||
|
|
||||||
if count >= max / 2:
|
if count >= max / 2:
|
||||||
keepGoing = dlg.Update(count, "Half-time!")
|
(keepGoing, skip) = dlg.Update(count, "Half-time!")
|
||||||
else:
|
else:
|
||||||
keepGoing = dlg.Update(count)
|
(keepGoing, skip) = dlg.Update(count)
|
||||||
|
|
||||||
|
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
@@ -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.
|
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.)
|
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
|
are initialized. They are now created after the wx.App has been
|
||||||
initializes itself on first use (when an attribute of the object is
|
created, but before OnInit is called, so if you use any of these
|
||||||
requested.) This was needed because of similar delayed initialization
|
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
|
functionality that was implemented in wxWidgets, but the end result is
|
||||||
cleaner for wxPython as well, and allowed me to remove some ugly code
|
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.StandardPaths.GetDocumentsDir.
|
||||||
|
|
||||||
Added wx.RendererNative.DrawCheckButton.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user