[pygtk] AccellLabel in MenuItem with uimanager and popup

Alessandro Dentella sandro at e-den.it
Sat Nov 21 06:46:48 WST 2009


Hi,

  I use uimanager with <menubar>, <toolbar> and <popup>, the same action
  defined as:
     ('Zoom-fit', gtk.STOCK_ZOOM_FIT, None, '<Control>z', None, self.on_zoom_fit),
  appear in menubar and popup. In menubar it does have an AccelLabel while in
  popup it doen't. Is there any reason?

  Following the main step I do to create the popup from the same uimanager
  that works for menubar:

  <popup name="TreePopup">
        ...
        <menuitem action="Zoom-fit" />
        ...
  </popup>


  menu = self.ui_manager.get_widget('/TreePopup')
  menu.popup(None, None, None, event.button, event.time)

  TIA
  sandro
  *:-)

  
-- 
Sandro Dentella  *:-)
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy


More information about the pygtk mailing list