Esempio n. 1
0
 def __init__(self, title, items, **kwds):
     #print "Menu: creating with items", items ###
     GMenu.__init__(self, title, items, **kwds)
     ns_menu = NSMenu.alloc().initWithTitle_(title)
     ns_menu.setAutoenablesItems_(False)
     ns_menu.setDelegate_(Globals.ns_application)
     self._ns_menu = ns_menu
Esempio n. 2
0
 def __init__(self, title, items, **kwds):
     #print "Menu: creating with items", items ###
     GMenu.__init__(self, title, items, **kwds)
     ns_menu = NSMenu.alloc().initWithTitle_(title)
     ns_menu.setAutoenablesItems_(False)
     ns_menu.setDelegate_(Globals.ns_application)
     self._ns_menu = ns_menu
Esempio n. 3
0
 def __init__(self, title, items, **kwds):
     GMenu.__init__(self, title, items, **kwds)
     self._gtk_menu = Gtk.Menu()
     self._gtk_accel_group = Gtk.AccelGroup()
Esempio n. 4
0
 def __init__(self, *args, **kwds):
     GMenu.__init__(self, *args, **kwds)
Esempio n. 5
0
 def __init__(self, title, items, **kwds):
     GMenu.__init__(self, title, items, **kwds)
     self._gtk_menu = Gtk.Menu()
     self._gtk_accel_group = Gtk.AccelGroup()
Esempio n. 6
0
 def __init__(self, *args, **kwds):
     GMenu.__init__(self, *args, **kwds)