TIP #149: ALLOW "ENABLED" AS SYNONYM FOR "NORMAL" IN -STATE OPTION ==================================================================== Version: $Revision: 1.2 $ Author: Michael A. Cleverly State: Withdrawn Type: Project Tcl-Version: 8.5 Vote: Pending Created: Wednesday, 13 August 2003 URL: https://tip.tcl-lang.org149.html Post-History: ------------------------------------------------------------------------- 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. ) 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. ------------------------------------------------------------------------- TIP AutoGenerator - written by Donal K. Fellows