On Sat, 2003-03-29 at 09:38, florian wrote:
> i have two questions about the MessageDialog class:
> 
> 1) how can i add more than one button to a message
> dialog?
If you want a standard set of buttons (Yes/No, Ok/Cancel...) then use
one of the constants defined in ButtonsType:
    http://makeashorterlink.com/?K1C832604 [gnome.org]
(Remember to replace the "GTK_" with "gtk." :) )

Otherwise, 
    "If none of these choices are appropriate, simply use 
     GTK_BUTTONS_NONE then call gtk_dialog_add_buttons()."

> 2) how can i connect signals to the buttons?
You connect to the "response" signal of the MessageDialog, rather than
to the "clicked" signal of the buttons.
-- 
Michael JasonSmith      http://www.cosc.canterbury.ac.nz/~mpj17/

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to