Displays a message (alert) dialog with optional icon, OK button, Cancel button and callback
planetcnc.msg_show(icon, ok_btn, cancel_btn, callback, wait, title, message)
#! /usr/bin/env python import planetcnc # Display a warning message with OK and Cancel buttons, no callback, no wait result = planetcnc.msg_show(2, True, True, msg_cb, "Warning", "This is a warning message.") print("Message result:", result) # Display an information message with OK button, and wait for user response result = planetcnc.msg_show(1, True, False, msg_cb, "Information", "Operation completed.") print("Message result after user response:", result)