dlg_has_btn_close()

Checks if a dialog contains a “Close” button.

Syntax

planetcnc.dlg_has_btn_close(handle)

Parameters

Parameter Type Description Comment
handle string Handle of the dialog to check.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Check if a dialog has a Close button
dialog_handle = "MyDialogHandle"
if planetcnc.dlg_has_btn_close(dialog_handle):
    print("Dialog has a Close button.")
else:
    print("Dialog does not have a Close button.")

See also

dlg_click_apply
dlg_click_ok
dlg_click_close

dlg_has_btn_apply
dlg_has_btn_ok
dlg_has_btn_close