dlg_init()

Initializes an existing custom dialog window.

Associates the dialog with the current script path.

Syntax

planetcnc.dlg_init(handle)

Parameters

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

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Initialize an existing dialog with a known handle
dialog_handle = "MyDialogHandle"
initialized_handle = planetcnc.dlg_init(dialog_handle)
 
if initialized_handle:
    print("Dialog initialized with handle:", initialized_handle)
else:
    print("Failed to initialize dialog.")

See also

dlg_new
dlg_init
dlg_update
dlg_clear

dlg_show
dlg_run
dlg_abort

dlg_is_valid
dlg_keep_open
dlg_callback