Search the web
Sign In
New User? Sign Up
tix · The Tix User Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem with tixDirSelectDialog   Message List  
Reply | Forward Message #992 of 1043 |
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





Fri May 28, 2004 11:38 am

knoedel30
Offline Offline
Send Email Send Email

Forward
Message #992 of 1043 |
Expand Messages Author Sort by Date

Hello! ... (1) set dlg [tixDirSelectDialog .dlg -command SelectDir] (2) $dlg popup (3) [...... Do other things ........] # Subprocedure (4) proc SelectDir...
knoedel30
Offline Send Email
Jun 11, 2004
9:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help