By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,002 Members | 1,020 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,002 IT Pros & Developers. It's quick & easy.

wxPython and Tkinter

P: n/a
Hi all,
I migrate some code from tkinter to wxpython. I need the equivalent
Tkinter method Tkinter.Tk.after
in wxPython, but I'm not able to find it. It exist or there are other
trick to emulate it?

thank you
w
Nov 29 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 29 Nov, 11:50, whatazor <dan...@gmail.comwrote:
Hi all,
I migrate some code from tkinter to wxpython. I need the equivalent
Tkinter method Tkinter.Tk.after
in wxPython, but I'm not able to find it. It exist or there are other
trick to emulate it?

thank you
w
"after" in Tk method allows to all a function every X milliseconds.
Nov 29 '07 #2

P: n/a
On Nov 29, 7:56 am, whatazor <dan...@gmail.comwrote:
On 29 Nov, 11:50, whatazor <dan...@gmail.comwrote:
Hi all,
I migrate some code from tkinter to wxpython. I need the equivalent
Tkinter method Tkinter.Tk.after
in wxPython, but I'm not able to find it. It exist or there are other
trick to emulate it?
thank you
w

"after" in Tk method allows to all a function every X milliseconds.
I think you need to setup an wx.Timer object.
self.timer = wx.Timer(self)
self.Bind(wx.EVT_TIMER, self.OnTimer, self.timer)

where the self.OnTimer is the method you want to call.
You need to start the timer:
self.timer.Start()

That's it, I think.
Nov 29 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.