mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 12:30:07 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
20 lines
504 B
Python
20 lines
504 B
Python
|
|
class MyFrame(wx.Frame):
|
|
|
|
def __init__(self, parent):
|
|
|
|
wx.Frame.__init__(self, parent)
|
|
|
|
self.timer = wx.Timer(self, TIMER_ID)
|
|
self.Bind(wx.EVT_TIMER, self.OnTimer)
|
|
|
|
self.timer.Start(1000) # 1 second interval
|
|
|
|
|
|
def OnTimer(self, event):
|
|
|
|
# do whatever you want to do every second here
|
|
print 'Hello'
|
|
|
|
|