jepler's suggestion seems to solve the problem:

# Wrap a dialog in a grab pair.
# Use to make tkFileDialog and tkMessageBox application-modal.
# Not needed for tkSimpleDialog.
# tk - grab target
# f - tkFileDialog.askopenfilename, tkMessageBox.showinfo, etc.
# kw - dictionary of key-word arguments to f
def wrapgrab(tk, f, kw):
    kw['parent'] = tk
    tk.grab_set()
    retval = f(**kw)
    tk.grab_release()
    return retval

thanks,
greg

ps: is the need to use the grab function a bug or something 
I should have expected?

_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to