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

Method OnPreInit

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

Source from the content-addressed store, hash-verified

249 super(CefApp, self).__init__(redirect=redirect)
250
251 def OnPreInit(self):
252 super(CefApp, self).OnPreInit()
253 # On Mac with wxPython 4.0 the OnInit() event never gets
254 # called. Doing wx window creation in OnPreInit() seems to
255 # resolve the problem (Issue #350).
256 if MAC and wx.version().startswith("4."):
257 print("[wxpython.py] OnPreInit: initialize here"
258 " (wxPython 4.0 fix)")
259 self.initialize()
260
261 def OnInit(self):
262 self.initialize()

Callers

nothing calls this directly

Calls 1

initializeMethod · 0.95

Tested by

no test coverage detected