Hi marsd,
I read your post and knew the difference between what you tried and what I tried.
Please try the command:
after 1000 {puts Hi}
NOTE: NO SEMICOLON! i.e. NOT "after 1000; puts Hi".
Because it is different command. This command will block the execution, which is not what I want.
I...
I also tried tclsh8.4 on linux. It failed too. Though not trying on windows(may try later), I believe it should behave the same. I felt very surprise how you could succeed!
Are you sure you used tclsh (not wish)?
And use the ONE command: after 1000 {puts hello}
Actually, I have found some...
which version of tclsh are you using?
I tried tclsh8.0, tclsh8.3 and tclsh8.4 on solaris.
The command
after 1000 {puts hello}
didn't give the output after 1 second.
But if using wish, it works.
I have known it's because tclsh doesn't support event-driven.
I don't know how you could get the...
The following is the manual for "after":
The after ms and after idle forms of the command assume that the application is event driven: the delayed commands will not be executed unless the application enters the event loop. In applications that are not normally event-driven, such as tclsh, the...
There is a tcl application, which may have multiple instances running simultaneously. I will use the "send" command to exchange data between these different instances.
Now, the question is:
Is there any way that I can get the application names for all the running instances?
Thanks...
I have the same problem.
When I upgraded to nero 5.5.9.9, nero can recognize the Polaroid BurnMax40. (I bought BurnMax40)
But the problem is that I couldnot use nero to burn,
because my nero software comes with my Cendyne CDRW.
It seems my nero only works with its bundle CDRW driver.
It needs...
The "send" command can help me to do it.
(This is what I was trying to find. But I forgot the command name at that time).
You really gave me more information on this topic. Maybe I can use them for other complicated cases later.
Thanks anyway.
Now I can use 'after' command to make the time-consuming work do periodicly. But the main program is not stuck there. And it looks good.
proc processfile {file} {
# do some processing(maybe 100 lines or more)
# and display
if {$file not end} {
after 10 "processfile $file"...
Thanks for your reply.
What I want is as following:
There is a file(maybe huge). I want to open it and convert each line into some format and then display it using text widget.
It seems that the display will not be ready until the procedure(read file, convert format and insert the text into...
Is there any method that I can run a tcl/tk procedure (may take long time) in background, so that other procedures can be executed at the same time?
Thanks
Thank you for your suggestion.
But it seems that we cannot zoom the bitmaps and images in the canvas.
Maybe we can do it MANUALLY. But it is not a realistic way. :-(
Thanks anyway.
Is there anyone who can provide a good method?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.