(self)
| 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() |
nothing calls this directly
no test coverage detected