No, that doesn't work. I get the error "Can't read 'chk': no such variable".
Basically, if the spinbutton reads "1", then I want to be able to reference the variable named "chk1". I can get the string "chk1" by doing chk$value. However, to get the value stored by that variable, I would have to...
I am trying to create a dynamic GUI in Tcl/Tk. I have a spinbox that the user can manipulate, and I have a number of checkbuttons that I want to be able to refer to dynamically.
So, for example, in the spinbutton callback, $value refers to the value of the spinbutton. chk$value is the name of a...
Excuse me, you are correct, I am using a text widget.
When I call update in the Proc, I don't technically have an infinite loop, but I get an infinite loop error. I'm assuming that tcl is fooled into thinking there is an infinite loop because the fileevent is generating callbacks more quickly...
I am trying to write a virtual console that will allow the user to run programs from tcl/tk. The purpose is so the user can manupilate command-line parameters with check boxes so they don't have to retype them each time they want to change something. Here is my code:
#!/usr/bin/wish
# execlog -...
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.