Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ardublockly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ardublockly
Commits
06cfc2f8
Commit
06cfc2f8
authored
May 30, 2015
by
carlosperate
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/carlosperate/ardublockly
parents
c01579f8
cc431b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
start_cef.py
start_cef.py
+10
-10
No files found.
start_cef.py
View file @
06cfc2f8
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#
#
# Changes are copyright (c) 2015 carlosperate https://github.com/carlosperate/
# Changes are copyright (c) 2015 carlosperate https://github.com/carlosperate/
#
#
import
sys
# In Mac cefpython library must be the very first library imported. This is
# In Mac cefpython library must be the very first library imported. This is
# because CEF was compiled with the tcmalloc memory allocator which hooks
# because CEF was compiled with the tcmalloc memory allocator which hooks
# globally and replaces the default malloc allocator. If memory was allocated
# globally and replaces the default malloc allocator. If memory was allocated
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
# segmentation faults in an application. See Issue 155 which is to provide CEF
# segmentation faults in an application. See Issue 155 which is to provide CEF
# builds on Mac with tcmalloc disabled:
# builds on Mac with tcmalloc disabled:
# https://code.google.com/p/cefpython/issues/detail?id=155
# https://code.google.com/p/cefpython/issues/detail?id=155
import
sys
try
:
try
:
from
cefpython3
import
cefpython
from
cefpython3
import
cefpython
import
wx
import
wx
...
@@ -32,9 +31,6 @@ except ImportError:
...
@@ -32,9 +31,6 @@ except ImportError:
import
os
import
os
import
re
import
re
import
time
import
time
#import uuid
#import ctypes
#import struct
import
codecs
import
codecs
import
inspect
import
inspect
import
platform
import
platform
...
@@ -217,13 +213,16 @@ class MainFrame(wx.Frame):
...
@@ -217,13 +213,16 @@ class MainFrame(wx.Frame):
"Using EVT_IDLE to execute the CEF message loop work"
)
"Using EVT_IDLE to execute the CEF message loop work"
)
self
.
Bind
(
wx
.
EVT_IDLE
,
self
.
OnIdle
)
self
.
Bind
(
wx
.
EVT_IDLE
,
self
.
OnIdle
)
self
.
CreateMenu
()
main_sizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
main_sizer
=
wx
.
BoxSizer
(
wx
.
VERTICAL
)
main_sizer
.
Add
(
self
.
menubar
,
proportion
=
0
,
flag
=
wx
.
ALL
|
wx
.
ALIGN_TOP
|
wx
.
EXPAND
,
border
=
0
)
# Only add the menubar to the main application frame
if
not
popup
:
self
.
CreateMenu
()
main_sizer
.
Add
(
self
.
menubar
,
proportion
=
0
,
flag
=
wx
.
ALL
|
wx
.
ALIGN_TOP
|
wx
.
EXPAND
,
border
=
0
)
main_sizer
.
Add
(
self
.
mainPanel
,
proportion
=
1
,
main_sizer
.
Add
(
self
.
mainPanel
,
proportion
=
1
,
flag
=
wx
.
ALL
|
wx
.
ALIGN_TOP
|
wx
.
EXPAND
,
border
=
0
)
flag
=
wx
.
ALL
|
wx
.
ALIGN_TOP
|
wx
.
EXPAND
,
border
=
0
)
self
.
SetSizer
(
main_sizer
)
self
.
SetSizer
(
main_sizer
)
main_sizer
.
Layout
()
main_sizer
.
Layout
()
...
@@ -954,6 +953,7 @@ def main(argv):
...
@@ -954,6 +953,7 @@ def main(argv):
# On Mac cefpython.Shutdown() is called in MainFrame.OnClose,
# On Mac cefpython.Shutdown() is called in MainFrame.OnClose,
# followed by wx.GetApp.Exit().
# followed by wx.GetApp.Exit().
if
g_platform_os
!=
"mac"
:
if
g_platform_os
!=
"mac"
:
print
(
g_ardutag
+
"End of main: Exiting"
)
cefpython
.
Shutdown
()
cefpython
.
Shutdown
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment