Skip to content

wxPython 4.0 never calls CefApp.OnInit on Mac #350

@cztomczak

Description

@cztomczak

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:

  1. Initialize CEF after wx was initialized, eg. during a call to embed_browser(). However that results with autorelease error when exiting app.

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions