A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.TimerEvent.html below:

wx.TimerEvent — wxPython Phoenix 4.2.4a1 documentation

wx.TimerEvent¶

wx.TimerEvent object is passed to the event handler of timer events (see wx.Timer.SetOwner ).

For example:

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')
Class Hierarchy¶

Inheritance diagram for class

TimerEvent

:

Methods Summary¶

__init__

GetInterval

Returns the interval of the timer which generated this event.

GetTimer

Returns the timer object which generated this event.

Properties Summary¶ Class API¶
class wx.TimerEvent(Event)¶

Possible constructors:

TimerEvent(timer) -> None

TimerEvent object is passed to the event handler of timer events (see Timer.SetOwner).


Methods¶
__init__(self, timer)¶
Parameters:

timer (wx.Timer)

Return type:

None


GetInterval(self)¶

Returns the interval of the timer which generated this event.

Return type:

int


GetTimer(self)¶

Returns the timer object which generated this event.

Return type:

wx.Timer


Properties¶
Interval¶

See GetInterval


Timer¶

See GetTimer


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4