dlg_add_label()

Adds a label component to a dialog.

The label can have a name and an text.

Syntax

planetcnc.dlg_add_label(handle, name, text)

Parameters

Parameter Type Description Comment
handle string Handle of the dialog to modify.
name string Name identifier for the label.
text string Text to display in the label.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
dlg_handle = planetcnc.dlg_new("Examples")
 
# Add a label component to a dialog
planetcnc.dlg_add_label(dlg_handle, "My Label", "Hello, World!")
 
planetcnc.dlg_show(dlg_handle)

See also

dlg_add_option
dlg_add_separator
dlg_add_image
dlg_add_label
dlg_add_checkbox
dlg_add_num_input
dlg_add_txt_input
dlg_add_dropbox
dlg_add_button