dlg_click_apply()

Triggers the “Apply” button click in a dialog.

Syntax

planetcnc.dlg_click_apply(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 Apply button in a dialog
dialog_handle = "MyDialogHandle"
if planetcnc.dlg_click_apply(dialog_handle):
    print("Apply button clicked.")
else:
    print("Apply 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