dlg_abort()

Aborts and closes a running dialog.

Terminates the specified dialog and exits the event loop.

Syntax

planetcnc.dlg_abort(handle)

Parameters

Parameter Type Description Comment
handle string Handle of the dialog to abort.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Abort an existing dialog with a known handle
dialog_handle = "MyDialogHandle"
planetcnc.dlg_abort(dialog_handle)
 
print("Dialog aborted.")

See also

dlg_new
dlg_init
dlg_update
dlg_clear

dlg_show
dlg_run
dlg_abort

dlg_is_valid
dlg_keep_open
dlg_callback