Unknown macro: {alias}
Name
qsetattribute — set widget attribute
Syntax
qsetattribute [widget] attribute
Description
The qsetattribute command sets a widget attribute. This determines certain behavioral aspects of the widget. The most common attribute is deleteonclose, which ensures that the widget is deleted in memory when closed. See below for a complete list.
Arguments
widget
attribute
Examples
Ex.1: qsetattribute
set w [qwidget] qsetattribute deleteonclose qshow $w
The widget 'w' created in the above example has the deleteonclose attribute set, meaning it will be deleted in memory when closed.