Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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.

  • No labels