Creates a new custom dialog window.
Returns a handle to the created dialog.
planetcnc.dlg_new(name=None)
#! /usr/bin/env python import planetcnc # Create a new dialog without a specific name dialog_handle = planetcnc.dlg_new() if dialog_handle: print("Dialog created with handle:", dialog_handle) else: print("Failed to create dialog.") # Create a new dialog with a custom name dialog_handle = planetcnc.dlg_new("MyDialog") print("Dialog created with handle:", dialog_handle)