[pygtk] UIManager submenu in a popup?

Raymond Maple cfder.maple at gmail.com
Wed Nov 4 08:25:34 WST 2009


Hello,
   I've used uimanager to construct a popup menu that contains a <menu> with
several <menuitem>s as follows:

    popup1 = """<ui>
    <popup name='Curve1'>
      <menuitem action = 'Edit_Curve'/>
      <menuitem action = 'Delete_Selected'/>
      <menu action = 'Display'>
        <menuitem action = 'Hide_Selection'/>
        <menuitem action = 'No_Points'/>
        <menuitem action = 'End_Points'/>
        <menuitem action = 'All_Points'/>
      </menu>
    </popup>
    </ui>"""

The resulting menu displays correctly, but the submenu action callbacks only
execute If I click on the "Display" menu item to open up the submenu, and
then click on the sub-item..  If i just hover over 'Display' until the
submenu opens and  then release over one of the submenu items, the action
callback is not executed.  I've tried similar menus in a menubar, and they
work correctly (hover-release executes the callback).  Is this a "feature"
of gtk popups, or is there something I am missing?

thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20091103/a8c607e5/attachment.htm 


More information about the pygtk mailing list