Renamed wx.FutureCall to wx.CallLater so it is named more like
wx.CallAfter. wx.FutureCall is now an empty subclass of wx.CallLater for compatibility of older code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -263,6 +263,10 @@ Andrea Gavana's FancyButtonPanel module.
|
|||||||
|
|
||||||
Added the wx.lib.flatnotebook module, from Andrea Gavana.
|
Added the wx.lib.flatnotebook module, from Andrea Gavana.
|
||||||
|
|
||||||
|
Renamed wx.FutureCall to wx.CallLater so it is named more like
|
||||||
|
wx.CallAfter. wx.FutureCall is now an empty subclass of wx.CallLater
|
||||||
|
for compatibility of older code.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -127,7 +127,7 @@ def CallAfter(callable, *args, **kw):
|
|||||||
method calls from non-GUI threads. Any extra positional or
|
method calls from non-GUI threads. Any extra positional or
|
||||||
keyword args are passed on to the callable when it is called.
|
keyword args are passed on to the callable when it is called.
|
||||||
|
|
||||||
:see: `wx.FutureCall`
|
:see: `wx.CallLater`
|
||||||
"""
|
"""
|
||||||
app = wx.GetApp()
|
app = wx.GetApp()
|
||||||
assert app is not None, 'No wx.App created yet'
|
assert app is not None, 'No wx.App created yet'
|
||||||
@@ -146,7 +146,7 @@ def CallAfter(callable, *args, **kw):
|
|||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
class FutureCall:
|
class CallLater:
|
||||||
"""
|
"""
|
||||||
A convenience class for `wx.Timer`, that calls the given callable
|
A convenience class for `wx.Timer`, that calls the given callable
|
||||||
object once after the given amount of milliseconds, passing any
|
object once after the given amount of milliseconds, passing any
|
||||||
@@ -157,7 +157,7 @@ class FutureCall:
|
|||||||
then there is no need to hold a reference to this object. It will
|
then there is no need to hold a reference to this object. It will
|
||||||
hold a reference to itself while the timer is running (the timer
|
hold a reference to itself while the timer is running (the timer
|
||||||
has a reference to self.Notify) but the cycle will be broken when
|
has a reference to self.Notify) but the cycle will be broken when
|
||||||
the timer completes, automatically cleaning up the wx.FutureCall
|
the timer completes, automatically cleaning up the wx.CallLater
|
||||||
object.
|
object.
|
||||||
|
|
||||||
:see: `wx.CallAfter`
|
:see: `wx.CallAfter`
|
||||||
@@ -247,6 +247,9 @@ class FutureCall:
|
|||||||
Result = property(GetResult)
|
Result = property(GetResult)
|
||||||
|
|
||||||
|
|
||||||
|
class FutureCall(CallLater):
|
||||||
|
"""A compatibility alias for `FutureCall`."""
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Control which items in this module should be documented by epydoc.
|
# Control which items in this module should be documented by epydoc.
|
||||||
# We allow only classes and functions, which will help reduce the size
|
# We allow only classes and functions, which will help reduce the size
|
||||||
|
Reference in New Issue
Block a user