Bob> How do you specify the group that a radio button should belong to?
    Bob> I can't seem to figure out what kind of argument is needed in the
    Bob> "group" parameter.  Help?

I just used another radio button widget in the same group:

    import gtk

    def main():
        window = gtk.GtkWindow(gtk.WINDOW_TOPLEVEL)
        window.connect("destroy", gtk.mainquit)
        window.set_title("Well, what've you got?")

        box = gtk.GtkVBox(gtk.FALSE, 0)
        window.add(box)

        button1 = gtk.GtkRadioButton(label="eggs and bacon")
        box.pack_start(button1)

        button2 = gtk.GtkRadioButton(group=button1,
                                     label="eggs sausage and bacon")
        box.pack_start(button2)

        button3 = gtk.GtkRadioButton(group=button1,
                                     label="eggs and spam")
        box.pack_start(button3)

        button4 = gtk.GtkRadioButton(group=button1,
                                     label="eggs bacon and spam")
        box.pack_start(button4)

        button5 = gtk.GtkRadioButton(group=button1,
                                     label="eggs bacon sausage and spam")
        box.pack_start(button5)

        separator = gtk.GtkHSeparator()
        box.pack_start(separator, gtk.FALSE, gtk.TRUE, 0)

        close = gtk.GtkButton("Comin' Right Up!")
        close.connect("clicked", gtk.mainquit)
        box.pack_start(close)

        window.show_all()

        gtk.mainloop()

    if __name__ == "__main__":
        main()

-- 
Skip Montanaro ([EMAIL PROTECTED])
(847)971-7098
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to