The Query events is called to allow the intervention when Scorpion is about
to do something. The following query events are available:
Any custom action or confirmation may be
performed to refuse the requested state change.
Example 1: Confirm Start
# Use the
MessageDlg method to display message dialogs with a confirmation icon
and 'Yes' and 'No' buttons
def Handle_System_QueryStart(): # # Return 1 to refuse START command # Return 0 for default handling # if MessageDlg('Do you want to start',2,3)==7: return 1 return 0 |