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

Class CustomNavigationBar

src/cefpython3.wx/examples/sample3.py:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71class CustomNavigationBar(chrome.NavigationBar):
72 def _LayoutComponents(self):
73 sizer = wx.BoxSizer(wx.HORIZONTAL)
74 sizer.Add(self.url, 1, wx.EXPAND|wx.ALIGN_CENTER_VERTICAL|wx.ALL, 12)
75
76 sizer.Add(self.GetBackButton(), 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|
77 wx.ALL, 0)
78 sizer.Add(self.GetForwardButton(), 0, wx.ALIGN_LEFT|wx.ALIGN_CENTER_VERTICAL|
79 wx.ALL, 0)
80 # in this example we dont want reload button
81 self.GetReloadButton().Hide()
82 self.SetSizer(sizer)
83 self.Fit()
84
85
86class MyApp(wx.App):

Callers 1

_InitComponentsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected