Tk Source Code

View Ticket
Login
Ticket UUID: 3046742
Title: Unknown option "-relief" in [bgerror]
Type: Bug Version: obsolete: 8.6b1.1
Submitter: andygoth Created on: 2010-08-17 03:05:27
Subsystem: 33. Generic Dialog Support Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2010-09-05 21:44:11
Resolution: Fixed Closed By: dkf
    Closed on: 2010-09-05 14:44:11
Description:
The <Return> binding for the standard Tk [bgerror] dialog sets the -relief option of the OK button.  However, the OK button is a [ttk::button] and therefore does not have a -relief option.

To test, run "bgerror foo", click on the bgerror dialog that pops up, and press Return (or Enter, whatever).  The error text will change to reflect the new problem.
User Comments: dkf added on 2010-09-05 21:44:11:

allow_comments - 1

dkf added on 2010-08-17 15:29:50:
Confirmed. ErrorInfo trace:
unknown option "-relief"
    while executing
".bgerrorDialog.ok configure -state active -relief sunken"
    (procedure "Return" line 4)
    invoked from within
"Return"
    (in namespace inscope "::tk::dialog::error" script line 1)
    invoked from within
"::namespace inscope ::tk::dialog::error Return"
    (command bound to event)

dgp added on 2010-08-17 10:48:58:
Part of the fix ought to be for Tk to
stop defining a [::bgerror] command,
and start using the Tcl 8.5 feature
[interp bgerror] to install its preferred
background error handler.