anirban2k2001
Programmer
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 -highlightbackground black -highlightthickness 1 -font $fnt9
.f2.t1 insert end []
place .f2.t1 -x 65 -y 25 -width 170 -height 16
Any help will be highly appreciated.
Regards,
Anirban Sarkar
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 -highlightbackground black -highlightthickness 1 -font $fnt9
.f2.t1 insert end []
place .f2.t1 -x 65 -y 25 -width 170 -height 16
Any help will be highly appreciated.
Regards,
Anirban Sarkar