Hello!
I have a problem with the following little program:
------------------------------------
(1) set dlg [tixDirSelectDialog .dlg -command SelectDir]
(2) $dlg popup
(3) [...... Do other things ........]
# Subprocedure
(4) proc SelectDir {dir} {
(5) tk_messageBox -message "You have selected '$dir'"
(6) }
-------------------------------------
I have defined a dialog to choose a directory in line (1). Without
waiting for my decision he goes on to do other things (3).
The problem is - I want him to wait for me and my decision of a
directory in the dialog box. Therefore I decided to put a
"tkwait window $dlg"
between (2) and (3). Now he waits, but when I press "OK" in the
Dialog-Box, he doesn't go futher anymore, he just hangs. The tkwait
documentation said to me, he is waiting for the dialog to be
destroyed. Isn't it destroyed by pressing "OK"???
What do I have to do to solve my problem - just choose a directory and
then go on with the rest?
Thank you for your help!!
Christian