Hi
Yeah, I know I seem to be doing things the hard way, but its because I am very new to this language and dont know any easier ways of doing things.
I have looked at my problem again and want to try creating a dialog box that will appear if the program has already been run before (ie...
Hi
I need to open up a file from within another file.
I am doing the following:
if {$test == "1"} { exec Error.tcl}
Whats wrong, I know its exec, and I know that the file is located in the same directory as the current file, and I have tried various "/" or "\"...
Hi
I have started a new thread for this as I wasnt getting much of a reply in a different one - Hope you dont mind:
Here is the code for a button I have made, that will export the variable $result to an external file..... :
button $f.b -text "Submit Answers" -command {...
Right, heres an update:
This is the code for the button (it is in a frame) :
button $f.b -text "Submit Answers" -command {
set mark 0
# if the correct answer is chosen
if {$q1 == "0"} {incr mark}
if {$q2 == "1"} {incr mark}...
OK Guys
I figured out it is the same as C, in that instead of "w" I can do "a" and it appends the file, or adds to it.
I need to know how to disable a button once it has been pressed now. Does anyone know how to do this?
Basically, they submit the test, get a result, and...
Hi Again
I actually can write to the file now, but it overwrites the file each time, ie i will have some contents in the file, and the next time I run it it will overwrite the vaule in the file. My code is:
set data $mark
set fileId [open results.txt "w"]
puts...
HI All
I need to send some vaules, (one is called 'mark') to an external file. I.e The value of 'mark' = 16, i need 16 to be in another blank file, possibly a txt file or something. Basically, each of my programs will add another integer/binary value to this file, and another program will read...
Hi
I am running windows 2k. Basically, if i have pressed the X, and i check out my task manager i have wish84.exe still using approx 3meg of memory. So, when i was doing lots of work the other day, i had 120instances of wish84.exe in the list and it froze my computer!!!!
Cheers
Hey all
I have a problem, which i understand is quite common amongst tcl programmers....
When i close a tcl window using the 'X' in the top right corner, wish84 is still active and using memory resources. I need to do either of the following:
a) disable the 'X' command so that when pressed...
Hello again
I need to place some gif/jpg images into my program but am completely unsure of how to do it.
I used to use visual tcl til i gave up all hope of getting ANYTHING working, and the code this generates does not work.
All i need is like:
image [....[d:/ok.gif]
Is there any packages i...
Hi again
Here is the code from the beginnning of the program where the frame is made etc, and then the beginning of the other proc that uses a frame inside of that one.
I am confused on how to access/modify the colour of the text on say, .r1 radiobutton. I want to do:
.r1 configure -fg red...
I cannot access the frames from outside the proc:
Basically, all my frames are called $f, and as they are all in different procs, this doesnt matter. (does it?)
Outside the procs, i want to access the frames maybe like:
$f.r1 configure -fg red.
This i want to turn radiobutton .r1 in the...
One other thing,
i have a list of code:
set q1 0
set q2 3
set q4 5....
can i do this all on 1 line? If so how?
Its not set q1 0 q2 2, just a syntax thing i gotta do i presume?
Cheers
Excellent. Cheers.....
One other thing, my radiobuttons are called:
$f.r1, $f.r2 ....etc
as they are in frames. To access these from outside the proc, do i have to declare the frame as global??
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.