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
Unknown macro: {indent}
The target widget. If this argument is omitted the current widget is used.
attribute
The widget attribute to set. The following table lists all attributes.
head1 |
head2 |
---|---|
colA1 |
colA2 |
colB1 |
colB2 |
Unknown macro: {indent}
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.