what is Tkinter frame.after() equivalance in wxPython?

Mohammad Jeffry wrote:

I'm doing a simple contdown program using wxPython. For the countdown display I'm using a StaticText. How do I refresh and redraw the StaticText within some time interval? In tkinter I can use the frame.after(). Do I need this in wxPython too?

You want a wx.Timer (or wx.PyTimer). There are examples in various parts of the demo, lib and Wiki. Two that come to mind are the throbber and the analog clock.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris I just want to say that you rocks!.. wxTimer is the bomb. Here is my small wxWidget stopwatch.
http://linuxlah.blogspot.com/2006/01/stopwatch-using-wxpython.html

···

On 1/9/06, Christopher Barker Chris.Barker@noaa.gov wrote:

Mohammad Jeffry wrote:

I’m doing a simple contdown program using wxPython. For the countdown
display I’m using a StaticText. How do I refresh and redraw the
StaticText within some time interval? In tkinter I can use the

frame.after(). Do I need this in wxPython too?

You want a wx.Timer (or wx.PyTimer). There are examples in various parts
of the demo, lib and Wiki. Two that come to mind are the throbber and
the analog clock.

-Chris


Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception


To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org

For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org


And whoever does an atom’s weight of evil will see it.