'modal dialogs' with Tkinter

Fredrik Lundh fredrik at pythonware.com
Tue Feb 22 11:07:31 EST 2005


Sean McIlroy wrote:

> I'd like to have a function f such that, when f is invoked, a Tk
> window w is presented in which a number of variables can be modified,
> and f returns the values that are indicated by the relevant
> menus/checkbuttons/etc at the time w gets closed. I've tried various
> ways of doing this, without success. Any assistance would be greatly
> appreciated.

does the approach described here work for you?

    http://www.pythonware.com/library/tkinter/introduction/dialog-windows.htm

(note that the tkSimpleDialog module is included in Python's standard library)

if it doesn't work, what doesn't work as required/expected?

</F> 






More information about the Python-list mailing list