Tk Library Source Code

View Ticket
Login
Ticket UUID: 638236
Title: BWidget: Entry "-state disabled" doesn't gray
Type: Bug Version: None
Submitter: schroedter Created on: 2002-11-14 06:46:26
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2003-10-21 06:16:02
Resolution: None Closed By: damonc
    Closed on: 2003-10-20 23:16:02
Description:
There is a difference between TK's entry and BWidget's
Entry
concerning the -state disabled option.

% package require BWidget
1.4.1
% pack [label .l1 -text "Tk entry"]
% pack [entry .e1]
% pack [label .l2 -text "BWidget Entry"]
% pack [Entry .e2]

# Make both entries yellow ==> okay
% .e1 configure -bg yellow
% .e2 configure -bg yellow

# Disable both entries ==> !!! .e1 becomes gray, .e2
stays yellow
% .e1 configure -state disabled
% .e2 configure -state disabled

# Disable both entries ==> okay, yellow
% .e1 configure -state normal
% .e2 configure -state normal 

# Get -disabledbackground option==> BWidget fails
%  .e1 cget -disabledbackground 
SystemButtonFace
%  .e2 cget -disabledbackground
unknown option "-disabledbackground"
%  .e2 cget -disabledforeground
SystemDisabledText