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

Method create_menu

examples/gtk2.py:127–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 return self.main_window.window.nsview
126
127 def create_menu(self):
128 item1 = gtk.MenuItem('MenuBar')
129 item1.show()
130 item1_0 = gtk.Menu()
131 item1_1 = gtk.MenuItem('Just a menu')
132 item1_0.append(item1_1)
133 item1_1.show()
134 item1.set_submenu(item1_0)
135 menubar = gtk.MenuBar()
136 menubar.append(item1)
137 menubar.show()
138 return menubar
139
140 def on_timer(self):
141 if self.exiting:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected