dlg_click_close()

Triggers the “Close” button click in a dialog.

Syntax

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