pyui Control Gallery - pytha-3d-cad/pytha-lua-api GitHub Wiki
Here you can find a full list of the available controls in pyui:
| Api Call | Control | Picture |
|---|---|---|
create_label() |
Label or Static Text | |
create_standalone_label() |
Same as label, but with larger spacing to neighbouring controls | |
create_group_box() |
Group box | |
create_foldable_group_box() |
Group box that the user can unfold/collapse | |
create_scrollable_group_box() |
Group box that the user can scroll | |
create_text_box() |
Text box where the user can enter a line of text (e.g. to enter a value) | |
create_text_display() |
A read-only text box, where you can display a value | |
create_text_spin() |
Text box with a spin button control | |
create_button() |
A button that the user can press | |
create_ok_button() |
Ok-Button (usually to dismiss the dialog and accept the result) | |
create_cancel_button() |
Cancel button to abort the action and end the plugin | |
create_check_box() |
Check box where the user can select an option (yes or no) | |
create_radio_button() |
Radio button to select one of several options | |
create_linked_radio_button() |
Defines further options (the first option in the set must be a standard radio button) | |
create_drop_list() |
Drop-Down List to select one of several options | |
create_list_box() |
Control window to select one of several options from a list | |
create_combo_box() |
Combo-Box, where the user can either select a pre-defined option or enter a custom text | |
create_pen_list() |
Drop-Down List to select a pen | |
create_linetype_list() |
Drop-Down List to select a linetype | |
create_layer_list() |
Drop-Down List to select a layer |
Event handlers
When the user interacts with the controls, an event handler may be invoked. See the description of each control, which type of handler it supports.
See also the pages for the on_change_handler and the on_click_handler.
Hiding and Disabling Controls
To show/hide a control (i.e. to change its visibility), use show_control. Note: a hidden control still takes space in the dialog layout.
To activate/deactivate a control (display it greyed out), use enable_control.
Localization
Please remember to add pyloc before those strings that will appear in the dialog to enable seamless localization/ translation!