Tk Library Source Code

View Ticket
Login
Ticket UUID: 649383
Title: -textvariable mapped to label and entry
Type: Bug Version: None
Submitter: nobody Created on: 2002-12-06 08:54:55
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-01-18 04:59:12
Resolution: Fixed Closed By: patthoyts
    Closed on: 2003-01-17 21:59:12
Description:
If I want to bind the entry of a LabelEntry to a text
variable by option -textvariable, not only the entry
but also the label field is bound to it. So I can't
give a fix text for the label and bind the value typed
in by the user to a variable automatically.

Solution:
I handle the option -textvariable in the same way as
width, font, anchor, ..., i.e. add it to the prefix
list of the Label - now the option -textvariable is
only used for the entry field.

Here is the diff of the original version of file
'labelentry.tcl' and my corrected version:

20c20
<         prefix {label -justify -width -anchor -height
-font -textvariable} \
---
>         prefix {label -justify -width -anchor -height
-font} \
User Comments: patthoyts added on 2003-01-18 04:59:12:
Logged In: YES 
user_id=202636

I bumped into this one too so I have applied the fix suggested.