anirban2k2001
Programmer
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 110
entry .f3.value -textvariable m_pn -width 10 -font $fnt9
place .f3.value -x 65 -y 112
set prev ""
label .f3.l7 -text "Meter No." -font $fnt9
place .f3.l7 -x 8 -y 130
entry .f3.value -textvariable m_no -width 10 -font $fnt9
place .f3.value -x 1 -y 1
set prev ""
############################################################
When I execute the script, it gives me the following error:
Error : window name "value" already exists in parent
My requirement is that there will be more than one entry widget in frame f3 with different validations for each of them.
Kindly help.
Regards,
Anirban Sarkar
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 110
entry .f3.value -textvariable m_pn -width 10 -font $fnt9
place .f3.value -x 65 -y 112
set prev ""
label .f3.l7 -text "Meter No." -font $fnt9
place .f3.l7 -x 8 -y 130
entry .f3.value -textvariable m_no -width 10 -font $fnt9
place .f3.value -x 1 -y 1
set prev ""
############################################################
When I execute the script, it gives me the following error:
Error : window name "value" already exists in parent
My requirement is that there will be more than one entry widget in frame f3 with different validations for each of them.
Kindly help.
Regards,
Anirban Sarkar