TIP #149: Allow "enabled" as Synonym for "normal" in -state Option
_____________________________________________________________________________
TIP:	149
Title:	Allow "enabled" as Synonym for "normal" in -state Option
Version:	$Revision: 1.2 $
Authors:	Michael A. Cleverly <michael@cleverly.com>
State:	Withdrawn
Type:	Project
Tcl-Version:	8.5
Vote:	Pending
Created:	Wed Aug 13 00:00:00 UTC 2003
Abstract
This TIP allows Tk widgets which have a configurable -state option to accept enabled as a synonym for normal.
Rationale
Tk widgets which have a configurable -state option have (at a minimum) normal and disabled states. In common usage, however, the antonym of disabled is enabled, not normal.
Even experienced Tcl/Tk programmers sometimes forget, though they usually won't come out and admit it explicitly. (Cf. http://groups.google.com/groups?th=66e286d7efc3bbb6)
Proposed Changes
Modify all Tk widgets which have a configurable -state option to accept enabled as a synonym for normal. The value returned by a widget's cget method would continue to be normal. The appropriate man pages and test suite will be updated to document and test the use of enabled as a synonym.
% $w configure -state enabled
% puts [$w cget -state]
normal
Implementation
A reference implementation will be provided shortly.
Copyright
This document is placed in the public domain.
_____________________________________________________________________________
Colophon
TIP AutoGenerator - written by Donal K. Fellows