From 8feec28c876b20dd98f1c73c694493ab2973226f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 6 Oct 2006 19:56:57 +0000 Subject: [PATCH] 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 --- wxPython/docs/CHANGES.txt | 4 ++++ wxPython/src/_core_ex.py | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/wxPython/docs/CHANGES.txt b/wxPython/docs/CHANGES.txt index d92c8795fe..c6d4558de4 100644 --- a/wxPython/docs/CHANGES.txt +++ b/wxPython/docs/CHANGES.txt @@ -263,6 +263,10 @@ Andrea Gavana's FancyButtonPanel module. 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. + diff --git a/wxPython/src/_core_ex.py b/wxPython/src/_core_ex.py index 8ede13afee..2cd3fe4b6f 100644 --- a/wxPython/src/_core_ex.py +++ b/wxPython/src/_core_ex.py @@ -127,7 +127,7 @@ def CallAfter(callable, *args, **kw): method calls from non-GUI threads. Any extra positional or keyword args are passed on to the callable when it is called. - :see: `wx.FutureCall` + :see: `wx.CallLater` """ app = wx.GetApp() 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 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 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 - the timer completes, automatically cleaning up the wx.FutureCall + the timer completes, automatically cleaning up the wx.CallLater object. :see: `wx.CallAfter` @@ -247,6 +247,9 @@ class FutureCall: Result = property(GetResult) +class FutureCall(CallLater): + """A compatibility alias for `FutureCall`.""" + #---------------------------------------------------------------------------- # Control which items in this module should be documented by epydoc. # We allow only classes and functions, which will help reduce the size -- 2.45.2