Hello everyone,
I need to write some fixed length data to a text file. I have a
variable named val whose value needs to be of a fixed length, say 7
characters. How do I pad the val variable with leading zero's so that
the length of the value stored in the variable is 7.
Example:
set...
Hi all,
I have a listbox in a frame. The listbox is populated with values from the backend. Since there will be many items in the list, I want to add a vertical scrollbar to the list box. I am giving below the code that I have used for the purpose, but the scrollbar does not show up as a result...
Thanks.
However, I am totally confused.
My application will ultimately run on a simputer and unfortunately, the simputer does not support Bwidget. It gives the message "Can't find package Bwidget".
What do I do?
Regards,
Anirban Sarkar
Hi all!
I have a frame .f3 and two entry widgets which accepts input from the user. The relevant code is:
############################################################
frame .f3 -width 250 -height 270
pack .f3
pack propagate .f3 0
label .f3.l6 -text "Panel No" -font $fnt9
place .f3.l6 -x 0 -y...
Hi all,
I have a frame in TCL where there are many label, text and entry widgets. To accomodate all the controls in the frame, I want to make the frame scrolling (both vertical and horizontal). How do I do it?
The frame initialisation code is given below:
frame .f2 -width 250 -height 270
pack...
How can I set the maximum length of a text entry widget in TCL?
I am giving the code below where I want to implement this.
I want to set the maximum length of the text widget .f2.t1 to 50 characters
CODE:
label .f2.l1 -text "Name" -font $fnt9
place .f2.l1 -x 0 -y 25
text .f2.t1 -bd 1...
Many thanks for your response.
I tried using your code but it gives me the following error:
Error: ".f2.t1" isn't a top-level window
Regarding your query: I need to specify some hidden text widgets because I want to have access to those values when I click on the Submit button and a procedure...
Hi all,
I need to store some values in a hidden text widget which is in a frame in tcl so that I can use those values to perform some mathematical operations when I click on the submit button. My problem is that I cannot make a text widget hidden. I am giving below the text widget code which I...
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.