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 »

Name

qblockedtrace — connect widget and Tcl variable

Syntax

qblockedtrace [widget] variable

Description

The qblockedtrace command assigns a trace variable to a current widget. A trace variable will at all times reflect the state or contents of the widget to which it is assigned. Writing to the variable will update the widget accordingly.

Assigning a value to a trace variable created with qblockedtrace will not result in the widget's callback function being called. To achieve this use qtrace

See qtrace for a further description on how variable tracing works.

Arguments

widget

The widget to which the variable will be connected. If this argument is omitted the current widget will be used.

variable

The name of the traced variable. The variable should be global or exist in a namespace. When referring to a namespace variable the namespace name should be part of the argument, like "MyNamespace::my_variable".

  • No labels