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

Method initComponents

src/cefpython3.wx/examples/sample2.py:47–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 self.Close()
46
47 def initComponents(self):
48 self.tree = wx.TreeCtrl(self, id=-1, size=(200, -1))
49 self.root = self.tree.AddRoot(ROOT_NAME)
50 for url in URLS:
51 self.tree.AppendItem(self.root, url)
52 self.tree.Expand(self.root)
53
54 self.tabs = fnb.FlatNotebook(self, wx.ID_ANY,
55 agwStyle=fnb.FNB_NODRAG | fnb.FNB_X_ON_TAB)
56 # You also have to set the wx.WANTS_CHARS style for
57 # all parent panels/controls, if it's deeply embedded.
58 self.tabs.SetWindowStyleFlag(wx.WANTS_CHARS)
59
60 def layoutComponents(self):
61 sizer = wx.BoxSizer(wx.HORIZONTAL)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected