Author: Michael A. Cleverly <firstname.lastname@example.org> State: Withdrawn Type: Project Vote: Pending Created: 13-Aug-2003 Tcl-Version: 8.5 Post-History:
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.