Checks if a dialog contains a “Close” button.
planetcnc.dlg_has_btn_close(handle)
#! /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.")