![]() |
| ||
| wx.CallAfter() Hello All, can someone tell me exactly what is done by this function? Thanks alot! |
| ||
| Re: wx.CallAfter() It is used with events in wxPython. If you have a button lets say that when you press it pops up a dialog box. But there is also something else going on and you want the method that makes that dialog box to be called After the event function is done. So here is the example from http://wiki.wxpython.org/CallAfter import threading,wx |
| ||
| Re: wx.CallAfter() So If I want let say to execute YouWin() method and when it is done I want to execute another method let me call it MeWin(), How do I do? What Arguments does it need? Thanks for reply |
| ||
| Re: wx.CallAfter() you would call wx.CallAfter(self.MeWin,ARGUMENTS)and then that will call the function after the YouWin function is done. |
| ||
| Re: wx.CallAfter() Lastly, what Arguments does it take. Will they be MeWin() method arguments or there are other? I mean wx.CallAfter(self.MeWin(), ARGUMENTS) what exactly ARGUMENTS is? |
| ||
| Re: wx.CallAfter() Woops, should have called them paramaters. If you have any that are needed then you put them as the second paramater but if there are no paramaters needed for the MeWin method then you dont need to have a second paramater. Note that you dont put parentheses after the self.MeWin the the wx.CallAfter. |
| ||
| Re: wx.CallAfter() Thanks Paul |
| All times are GMT -4. The time now is 7:07 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC