Checks if a dialog contains an “OK” button.
planetcnc.dlg_has_btn_ok(handle)
#! /usr/bin/env python import planetcnc # Check if a dialog has an OK button dialog_handle = "MyDialogHandle" if planetcnc.dlg_has_btn_ok(dialog_handle): print("Dialog has an OK button.") else: print("Dialog does not have an OK button.")