[pygtk] Adding and deleting items from a menu
saeed
saeed.gnu at gmail.com
Mon Aug 17 20:27:54 WST 2009
Any Widget needs to be called show() to be shown and updated in the
GUI. For a Container, you can also use show_all() method to show all
of it's children. Then in this case, you need call show() for the new
menu item, or call show_all() for the menu itself.
You can see all methods and features of a class, only if you follow
the class inheritance. For example Menu is a MenuShell, and MenuShell
is a Container. and Container has a method remove(widget). then you
can use:
my_menu.remove(item1)
On 8/17/09, Fabrice DELENTE <delentef at gmail.com> wrote:
>> This is not a real answer to your question, but I have been fighting with
>> menus till I took the time to read UIManager Interfaces that really makes
>> working with menus much simpler and more reasonable.
>
> I'll look into that, thanks. Is it compatible with glade (because I designed
> my interface with it)?
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list