[pygtk] Dialogs !

Andi Albrecht albrecht.andi at googlemail.com
Mon Mar 17 15:12:00 WST 2008


Glade sets response IDs for buttons in dialogs always to 0. Give each
button it's own response ID (it's the last entry on the General tab in
the properties view).

Andi

2008/3/17, Prashant Shah <elite.mumbai at gmail.com>:
> I did that but wont work. The return value is always zero !
>
>  >print result
>  >0
>
>  The dialog has three button (self.b1, self.b2, self.b3)
>
>  How do I get which one was pressed.
>
>
>  On Sun, Mar 16, 2008 at 11:54 PM, Guilherme Polo <ggpolo at gmail.com> wrote:
>  > 2008/3/16, Prashant Shah <elite.mumbai at gmail.com>:
>  >
>  > > I have a glade file with a Dialog widget with three buttons that I
>  >  >  added manually (start, stop, cancel). Name of the dialog is dialog1.
>  >  >
>  >  >  How do I get the which buttons have been clicked after running.
>  >  >
>  >  >  self.dialog1.run()
>  >  >
>  >  >  Since I am calling from a glade file I couldnt find any docs on how to
>  >  >  add the button parameter that is present in the normal gtk.Dialog()
>  >  >  widget.
>  >
>  >  result = self.dialog1.run()
>  >
>  _______________________________________________
>  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/
>


More information about the pygtk mailing list