File tree Expand file tree Collapse file tree
cefpython/cef3/wx-subpackage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,8 +45,12 @@ def MessageLoopTimer(event):
4545def DestroyMessageLoopTimer ():
4646 global g_messageLoopTimer
4747 Debug ("DestroyMessageLoopTimer" )
48- g_messageLoopTimer .Stop ()
49- g_messageLoopTimer = None
48+ if g_messageLoopTimer :
49+ g_messageLoopTimer .Stop ()
50+ g_messageLoopTimer = None
51+ else :
52+ # There was no browser created during session.
53+ Debug ("DestroyMessageLoopTimer: timer not started" )
5054
5155#-------------------------------------------------------------------------------
5256
Original file line number Diff line number Diff line change 11# Slightly more advanced sample illustrating the usage of CEFWindow class
22# __author__ = "Greg Kacy <grkacy@gmail.com>"
33
4+ # --WARNING--
5+ # TODO: There is something wrong with this example. On Linux
6+ # CPU usage for the python process is 100% all the time.
7+ # The other examples sample1.py / sample2.py do not
8+ # show such behavior. It must have something to do
9+ # with the wx controls used in this example.
10+
411import wx
512import wx .lib .agw .flatnotebook as fnb
613import cefpython3 .wx .chromectrl as chrome
You can’t perform that action at this time.
0 commit comments