|Title:||Allow "enabled" as Synonym for "normal" in -state Option|
|Version:||$Revision: 1.2 $|
|Author:||Michael A. Cleverly <michael at cleverly dot com>|
|Created:||Wednesday, 13 August 2003|
This TIP allows Tk widgets which have a configurable -state option to accept enabled as a synonym for normal.
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)
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
A reference implementation will be provided shortly.
This document is placed in the public domain.
[Index] [History] [HTML Format] [Source Format] [LaTeX Format] [Text Format] [XML Format] [*roff Format (experimental)] [RTF Format (experimental)]TIP AutoGenerator - written by Donal K. Fellows