[pygtk] dialog response
Andrew
rugby471 at gmail.com
Sat Aug 14 23:55:00 WST 2010
On 09/08/10 10:17, Imre Horvath wrote:
> Hi!
>
> I've got a dialog, with Ok and Cancel buttons in the actionarea (I'm
> using gtkbuilder)
> I want to validate the dialog data. I write an action handler for the Ok
> button that validates it, but i need the dialog remain open when
> validation fails. How can i do this?
>
> Thanks in advance:
> Imre Horvath
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
Hi Imre,
I assume you are using dialog.run(), this will hide the dialog when a
user clicks an actionarea button and so will not keep the dialog open.
Instead you could use dialog.show_all() and hide the dialog in a
callback of one of the buttons.
Does this make sense? If not please could you post your code?
--
Andrew
More information about the pygtk
mailing list