Prevents a dialog from closing when the close button is clicked.
Allows the dialog to be cleared and reused instead of being closed.
planetcnc.dlg_keep_open(handle, keep_open=True)
#! /usr/bin/env python import planetcnc # Prevent an existing dialog from closing dialog_handle = "MyDialogHandle" planetcnc.dlg_keep_open(dialog_handle, True) print("Dialog will remain open.")