[pygtk] Dialogs !

Prashant Shah elite.mumbai at gmail.com
Mon Mar 17 14:55:02 WST 2008


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()
>


More information about the pygtk mailing list