Tk Dialog Boxes
Jørgen Cederberg
jorgencederberg at hotmail.com
Tue Dec 3 02:06:03 EST 2002
"Newt" <newt_e at blueyonder.co.uk> wrote in message news:b_PG9.821$Qx6.8472813 at news-text.cableinet.net...
> Hi,
>
> I'm trying to build a class to represent a dialog box.
>
<snip >
>
> The problem I have is that I want to return a value back to the calling
> program.
>
> I thought about creating a new method which could do all the display and the
> last few lines of the __init__method, but couldn't see how that would help.
> Does the destroy() (as seen above) actually destroy the object, or could I
> set a propery on it to indicate how the form was exited?
>
Hi
I usually use the Dialog class in tkSimpleDialog.py in the Lib\lib-tk directory as a template for my dialog boxes. Maybe you should have a look at to see how it handles the returning of values after closing.
Regards
Jorgen
More information about the Python-list
mailing list