def createMenus(self, vbox): self.menubar = gtk.MenuBar() vbox.pack_start(self.menubar, expand=False) topmenuitem = gtk.MenuItem('_Menu') self.menubar.add(topmenuitem) menu = gtk.Menu() topmenuitem.set_submenu(menu) menuitem = iconMenuItem(('_Fechar'),gtk.STOCK_CLOSE) menuitem.connect('activate', gtk.main_quit) menu.add(menuitem)
def icon_menu(self, title, stock): return iconMenuItem(title, stock)