dlg_set_name()

Sets the name (title) of a dialog window.

Syntax

planetcnc.dlg_set_name(handle, name)

Parameters

Parameter Type Description Comment
handle string Handle of the dialog to rename.
name string New name (title) for the dialog.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
# Set a new name for an existing dialog
dialog_handle = "MyDialogHandle"
planetcnc.dlg_set_name(dialog_handle, "New Dialog Title")
 
print("Dialog name updated.")

See also

dlg_set_modal
dlg_set_resizable
dlg_set_pos
dlg_set_size
dlg_set_btn
dlg_set_name
dlg_set_color