Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. godatguitar

    Problems with exec (file from within another file)

    Thanks guys Problems solved at last!
  2. godatguitar

    Problems with exec (file from within another file)

    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...
  3. godatguitar

    Problems with exec (file from within another file)

    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 "\&quot...
  4. godatguitar

    Button Configure & command problem

    Thanks a lot mate... Got it working! Paul
  5. godatguitar

    Button Configure & command problem

    Hi Bob It cannot find the button $f.b inside its own command... what do i do? Its cannot find f, or .b if i change it to .b configure
  6. godatguitar

    Button Configure & command problem

    Hi ALready done that mate, it doesnt let me do anything, but it does disable the button. But i need it to continue after that. Thanks anyway :)
  7. godatguitar

    Button Configure & command problem

    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 {...
  8. godatguitar

    How to export to an external file - please help!

    ok how do i do that? I have tried and it doesnt work Configure is unrecognised. Please help!
  9. godatguitar

    How to export to an external file - please help!

    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}...
  10. godatguitar

    How to export to an external file - please help!

    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...
  11. godatguitar

    How to export to an external file - please help!

    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...
  12. godatguitar

    How to export to an external file - please help!

    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...
  13. godatguitar

    Closing a tcl window - wish84 problem

    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
  14. godatguitar

    Closing a tcl window - wish84 problem

    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...
  15. godatguitar

    Images - Hpw to

    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...
  16. godatguitar

    Newbie - Scrollable canvas not working

    Many, many thanks for your help everyone. I REALLY appreciate it! :)
  17. godatguitar

    Reloading(?) radiobuttons & variables

    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...
  18. godatguitar

    Reloading(?) radiobuttons & variables

    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...
  19. godatguitar

    Reloading(?) radiobuttons & variables

    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
  20. godatguitar

    Reloading(?) radiobuttons & variables

    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??

Part and Inventory Search

Back
Top