Skip to content

pyui.create_button

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

Create a button that the user can press. If you want to create an Ok or Cancel button, see create_ok_button or create_cancel_button instead.

pyui.create_button(dialog, col_spec [,text])
dialog:create_button(col_spec, text)

Parameters

Type Description
dialog dialog_handle Dialog where the control is created
col_spec integer or {first, last} Index of the column or specification of the column-span, where the control is placed.
text string Initial text-content of the control

Return value

Type Description
control_handle A handle to the newly created control

Note

When the user pushes the button, the on_click handler is called.

See also

Control Gallery, set_control_text, set_on_click_handler, create_ok_button, create_cancel_button

Clone this wiki locally