dlg_clear()

Clears the contents of a custom dialog window.

Removes all elements inside the dialog.

Syntax

planetcnc.dlg_clear(handle)

Parameters

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

Return Value

Examples

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

See also

dlg_new
dlg_init
dlg_update
dlg_clear

dlg_show
dlg_run
dlg_abort

dlg_is_valid
dlg_keep_open
dlg_callback