dlg_has_btn_apply()

Checks if a dialog contains an “Apply” button.

Syntax

planetcnc.dlg_has_btn_apply(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 an Apply button
dialog_handle = "MyDialogHandle"
if planetcnc.dlg_has_btn_apply(dialog_handle):
    print("Dialog has an Apply button.")
else:
    print("Dialog does not have an Apply button.")

See also

dlg_click_apply
dlg_click_ok
dlg_click_close

dlg_has_btn_apply
dlg_has_btn_ok
dlg_has_btn_close