wxCallAfter for C++

Vadim Zeitlin vadim at wxwidgets.org
Wed Jun 6 08:37:00 PDT 2007


On Wed, 06 Jun 2007 08:31:48 -0700 Robin Dunn <robin at alldunn.com> wrote:

RD> Robert Roebling wrote:
RD> > 
RD> > What does it do?
RD> > 
RD> 
RD> It takes a reference to a callable object, a sequence and/or dictionary 
RD> of parameters to pass to that callable, puts them all in a event object, 
RD> and posts the event to the app object.  When the event arrives the 
RD> callable is called passing it the specified args.  It's very flexible 
RD> because of Python's abilities, and is very useful.  Probably about a 
RD> quarter of the wxPython questions I answer contain the phrase "Use 
RD> wx.CallAfter to..."

 I have no trouble believing this as I often have to implement the same
thing (but much less elegantly) in C++ code but I still have the feeling
that it isn't right that it's needed so often. Something seems to be wrong
with wx event processing if so many things don't have any natural place
where they could be done. I don't have a precise idea of what exactly those
things are now how to correct this...

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list