Skip to content

pyui.disable_control

fabian-flassig edited this page Jul 31, 2026 · 2 revisions

Disable a control, so that it is displayed as greyed-out and the user cannot interact with it. This is the counterpart of enable_control.

pyui.disable_control(control [,enabled])
control:disable_control([enabled])

Parameters

Type Description
control control_handle Control handle
enabled boolean Optional: new enabled-state, default: false

Return value

None

See also

Control Gallery, enable_control, show_control, hide_control, set_control_text

Clone this wiki locally