-
-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wxPython 4.0 never calls CefApp.OnInit on Mac #350
Comments
Fix searching for Python.h include file when building with system Python 3 on Mac.
Fixed in commit 7c3ffb5. Whether the Solution 2 has any side effects is yet to be discovered. |
Works great for me on both: [wxpython.py] CEF Python 56.1 [wxpython.py] CEF Python 56.1 Nice solution, Thanks! |
Regarding autorelease pool error, this may be fixed in CEF v59+. Upstream issue for reference: https://bitbucket.org/chromiumembedded/cef/issues/2160/incorrect-use-of-autorelease-pools-in-3071 |
The
super(CefApp, self).__init__(redirect=redirect)
call never returns and OnInit is never called. This only occurs if cef.Initialize() was called beforehand. There seem to be two solutions:Initialize CEF after wx was initialized, eg. during a call to embed_browser(). However that results with autorelease error when exiting app.
Implement CefApp.OnPreInit and do wx window creation in that event instead of OnInit.
Issue originally reported on the Forum:
https://groups.google.com/d/topic/cefpython/tM8SXp_a_u0/discussion
The text was updated successfully, but these errors were encountered: