> Did you ever get an answer to your question (to the pygtk mailing
> list) concerning libglade and GtkRadioMenuItems? I'm having the
> same problem now.
It's weird that you asked me this morning, I just figured out a way to do
it last night (I am just learning GTK so this may not be the most efficient
solution).
# build browse mode menu, is there a way to do this with libglade?
browseMenu = GtkMenu()
WidgetTree.get_widget('browse_mode1').set_submenu(browseMenu)
byName = GtkRadioMenuItem(None, 'Browse By Customer Name')
byName.set_active(1)
db.setCursorMode('last_name', 'first_name', 'title', 'company')
byName.connect('toggled', by_name)
byName.show()
byNumber = GtkRadioMenuItem(byName, 'Browse By Customer Number')
byNumber.connect('toggled', by_number)
byNumber.show()
byCompany = GtkRadioMenuItem(byName, 'Browse By Company')
byCompany.connect('toggled', by_company)
byCompany.show()
browseMenu.append(byName)
browseMenu.append(byNumber)
browseMenu.append(byCompany)
'browse_mode1' is a normal menu item created in Glade, this code adds the
GtkRadioMenuItem group to a submenu, but I'm sure you could also add them
to a GtkMenu produced in Glade.
--
Harry Henry Gebel, Senior Developer, Landon House SBS ICQ# 76308382
West Dover Hundred, Delaware
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk