pyui.enable_control - pytha-3d-cad/pytha-lua-api GitHub Wiki
Change the enabled / disable or active / inactive state of a control. disabled controls are displayed as greyed-out and the user cannot interact with them.
pyui.enable_control(control [,enabled])
control:enable_control([enabled])
Parameters
| Type | Description | |
|---|---|---|
control |
control_handle |
Control handle |
enabled |
boolean |
Optional: new enabled-state, default: true |
Return value
None
See also
Control Gallery, show_control, set_control_text, set_control_checked, create_text_box, create_label