On Wed, Nov 12, 2003 at 05:53:41PM +0100, Harobed wrote: > What is the best method to get data from dialog box ? > > Use callback or return of function ?
It usually depends on what sort of dialog. If we're talking about a modal dialog (which all dialogs in practice should be) then you can run a mainloop upon displaying it (in a run()-like function) and have your function just return a value. This is nice because it makes the control flow in your program very simple. If it's a non-modal window, you'll probably need to use a callback if you need to communicate more frequently than at the dialog-close event. I'm not a big fan of using signals in general to communicate between parent and child dialog windows, because in my experience it makes the code a lot harder to follow. Take care, -- Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331 _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
