[pygtk] Accessing the names of sub menu items
Nikos Kouremenos
kourem at gmail.com
Sat Apr 8 07:45:08 WST 2006
I believe your explanation in what you want is a bit bad. if I
understood correctly (had to read 2 times) you can do:
for child in hello_menu.get_children()
print child.get_text() # 'World', next loop 'Canadara', next
'USA', next 'Greece' etc
On 4/7/06, Thierry Lam <lam at pcigeomatics.com> wrote:
> Let's say I have the following menu item(Hello) with it's list of sub
> menu items(World, Canada, USA).
>
> Hello -> World
> -> Canada
> -> USA
>
> Is there a way to access each of the Hello sub menu items through python
> codes with just the Hello Gtk.MenuItem only?
>
> Thanks
> Thierry
>
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
--
Nikos Kouremenos
More information about the pygtk
mailing list