dlg_click_ok()

Triggers the “OK” button click in a dialog.

Syntax

planetcnc.dlg_click_ok(handle)

Parameters

Parameter Type Description Comment
handle string Handle of the dialog containing the button.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Trigger the OK button in a dialog
dialog_handle = "MyDialogHandle"
if planetcnc.dlg_click_ok(dialog_handle):
    print("OK button clicked.")
else:
    print("OK button not found.")

See also

dlg_click_apply
dlg_click_ok
dlg_click_close

dlg_has_btn_apply
dlg_has_btn_ok
dlg_has_btn_close