예제 #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
예제 #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
예제 #3
0
파일: Menus.py 프로젝트: tomihasa/pygui
 def __init__(self, title, items, **kwds):
     GMenu.__init__(self, title, items, **kwds)
     self._gtk_menu = Gtk.Menu()
     self._gtk_accel_group = Gtk.AccelGroup()
예제 #4
0
 def __init__(self, *args, **kwds):
     GMenu.__init__(self, *args, **kwds)
예제 #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()
예제 #6
0
파일: Menu.py 프로젝트: mnabeelp/PyGUI
 def __init__(self, *args, **kwds):
     GMenu.__init__(self, *args, **kwds)