4
from ToolButtonWithMenu import ToolButtonWithMenu
6
class AppMenu(ToolButtonWithMenu):
8
def create(self, stock, size, label, _menu):
10
image.set_from_stock(stock, size)
11
return self(image, label, _menu)
12
def __init__(self, image, label, _menu):
13
super(AppMenu, self).__init__(image, label, _menu)
14
self.connect("clicked",self.on_click)
15
def on_click(self, event):
16
self.menu.select_first(False)