MCPcopy Create free account
hub / github.com/cztomczak/cefpython / create_timer

Method create_timer

examples/wxpython.py:274–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

272 frame.Show()
273
274 def create_timer(self):
275 # See also "Making a render loop":
276 # http://wiki.wxwidgets.org/Making_a_render_loop
277 # Another way would be to use EVT_IDLE in MainFrame.
278 self.timer = wx.Timer(self, self.timer_id)
279 self.Bind(wx.EVT_TIMER, self.on_timer, self.timer)
280 self.timer.Start(10) # 10ms timer
281
282 def on_timer(self, _):
283 cef.MessageLoopWork()

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected