Skip to content

pyui.create_cancel_button

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

Create the Cancel button. When the user presses the Cancel button, the plugin is terminated and control returns to PYTHA.

pyui.create_cancel_button(dialog, col_spec [,text])
dialog:create_cancel_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 Optional: Should be left out to get a consistent translation of "Cancel"

Return value

Type Description
control_handle A handle to the newly created control

Remarks:

There is no on_click handler for the Cancel-button!

See also

Control Gallery, set_control_text, create_ok_button, create_button

Clone this wiki locally