Is there a way to update a list from within a foreach loop that is working on the list? Here's an example ...
set nos [list 1 2 3 4 5 6]
% foreach one $nos {
if {$one == 4} {
lappend nos 7
}
if {$one == 7} {puts "List...
Ayup, I have an application that presents some data in a toplevel window top1. I can embed another application (a tcl script) in the toplevel window but I can't position it where I would like. Ideally I wanted to create a frame in the toplevel and then position the frame but I can only get it...
I can't figure out how to display symbols in a text widget in the output of a tk/tcl script. I want to be able to display units of various properties that would include being able to display a degrees symbol and superscripts (for powers). Is it possible and how can I do it?
45 deg C and 50...
Hi, I am programming a GUI and want to include a fast way to access models by incorporating buttons for them that display the appropriate model when clicked. My problem is that there can be about 20 models and some of the buttons are packed off the screen. I was hoping to be able to do...
Hi, I need to extract data from a text file but the lines wrap at the end which is giving me trouble. Here's an example of the text file;
P1, Q = 0, M = 0, MT = 0, RT_FLAG = 0, RPM = 0, RAD = 0,
ANGLE_TZ = 0, ANGLE_RZ = 0;
E4, LABEL = 'E4', Q = 0, M = 0, MT = 0, RT_FLAG = 0, RPM = 0,
RAD = 0...
Hi, please help, I am writing a GUI that opens a toplevel dialog window when certain canvas items are double-clicked. I need to be able to have multiple toplevel windows open at once, each with their own set of variables. For example, each toplevel will have an exit button that destroys only...
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.