Tk Library Source Code

View Ticket
Login
Ticket UUID: 688070
Title: LabelFrame/LabelEntry -label/-text/-textvariable broken
Type: Bug Version: None
Submitter: ingemarh Created on: 2003-02-17 15:30:00
Subsystem: bwidget Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-02-18 01:19:34
Resolution: Out of Date Closed By: hobbs
    Closed on: 2003-02-17 18:19:34
Description:
BWidget 1.5:


When creating a LabelFrame with -label, -text and 
-textvariable options the -label option is ignored.


The label's text will be the contents of the textvariable.




The last line in the below block from labelframe.tcl is 
changed.


v1.4.1:


    Widget::bwinclude LabelFrame BWLabel .l \


        remove     {


            -highlightthickness -highlightcolor 
-highlightbackground


            -takefocus -relief -borderwidth


            -bitmap -image -cursor -textvariable




v1.5:


    Widget::bwinclude LabelFrame BWLabel .l \


        remove     {


            -highlightthickness -highlightcolor 
-highlightbackground


            -takefocus -relief -borderwidth


            -cursor




Workaround. Include the following block right after 
"package require BWidget":


namespace eval LabelFrame {


    BWLabel::use




    Widget::bwinclude LabelFrame BWLabel .l \


        remove     {


            -highlightthickness -highlightcolor 
-highlightbackground


            -takefocus -relief -borderwidth


            -cursor -textvariable


            -dragenabled -draginitcmd -dragendcmd 
-dragevent -dragtype


            -dropenabled -droptypes -dropovercmd  
-dropcmd} \


        initialize {-anchor w}


    proc use {} {}


}




I probably breaks something else, but it at least works for 
me.
User Comments: hobbs added on 2003-02-18 01:19:34:
Logged In: YES 
user_id=72656

Already corrected in the HEAD.