anirban2k2001
Programmer
Hi all,
I have a text box where I want to display some variable values that I had fetched from a text file. Can anyone help me with the syntax in this respect. For convenience, I am giving the tcl code that I had used to generate the text box:
#label
label .l -text "Cons No" -font $fnt9
place .l -x 0 -y 10 -width 200 -height 10
#text box
text .t -bd 1 -highlightbackground black highlightthickness 1
place .t -x 150 -y 8 -width 70 -height 16
focus .t
Assuming that the Cons no. is in a variable $cons, how do I place the variable content in the text box?
Any help in this regard will be highly appreciated.
Thanks in advance.
I have a text box where I want to display some variable values that I had fetched from a text file. Can anyone help me with the syntax in this respect. For convenience, I am giving the tcl code that I had used to generate the text box:
#label
label .l -text "Cons No" -font $fnt9
place .l -x 0 -y 10 -width 200 -height 10
#text box
text .t -bd 1 -highlightbackground black highlightthickness 1
place .t -x 150 -y 8 -width 70 -height 16
focus .t
Assuming that the Cons no. is in a variable $cons, how do I place the variable content in the text box?
Any help in this regard will be highly appreciated.
Thanks in advance.