TIP #186 Version 1.1: Expose the Type and Modified-State of Widget Options

This is not necessarily the current version of this TIP.


TIP:186
Title:Expose the Type and Modified-State of Widget Options
Version:$Revision: 1.1 $
Author:Peter MacDonald <pmacdona at pdqi dot com>
State:Draft
Type:Project
Tcl-Version:8.5
Vote:Pending
Created:Friday, 16 April 2004
Keywords:Tk

Abstract

This TIP adds a 6th (and 7th element) to each option in the output of [path configure] for Tk widgets, indicating the type and modified status of each option respectively.

Rationale

The configure subcommand of Tk widgets provides a powerful method for introspection of widget state information. Unfortunately, two important pieces of information are currently unavailable. Namely, the type Tk is expecting for an option and the whether a user has explicitly assigned a value.

The type field is valuable in automating interfaces for editing the contents of widgets.

The modified field is useful in changing styles (such as in tk_setPalette) where we update all w