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

Method __init__

src/cefpython3.wx/examples/sample1.py:12–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class MainFrame(wx.Frame):
12 def __init__(self):
13 wx.Frame.__init__(self, parent=None, id=wx.ID_ANY,
14 title='cefwx example1', size=(800,600))
15
16 self.cefWindow = chrome.ChromeWindow(self,
17 url=os.path.join(os.path.dirname(os.path.abspath(__file__)),
18 "sample1.html"))
19
20 sizer = wx.BoxSizer()
21 sizer.Add(self.cefWindow, 1, wx.EXPAND, 0)
22 self.SetSizer(sizer)
23
24 self.Bind(wx.EVT_CLOSE, self.OnClose)
25
26 def OnClose(self, event):
27 # Remember to destroy all CEF browser references before calling

Callers

nothing calls this directly

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected