Name

getprop — Fetches the value of a given property from a widget

Synopsis

getprop widget property

Description

Fetches the value of a given property. For example:

	    set tf [textfield label "Insert text:"]
	    ...
	    set inserted_text [getprop $tf text]
	  

In this example, getprop fetches the text that has been inserted in the textfield. property must be a valid property for the given widget.