Skip to content

pyui.create_ok_button

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

Create the Ok button. When the user presses the Ok button, the dialog (and potentially its containing modal section) is ended and run_modal_dialog returns (if the dialog was displayed in this way).

pyui.create_ok_button(dialog, col_spec [,text])
dialog:create_ok_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 "Ok"

Return value

Type Description
control_handle A handle to the newly created control

Note

There is no on_click handler for the Ok-button!

See also

Control Gallery, set_control_text, create_cancel_button, create_button

Clone this wiki locally