dlg_add_separator()

Creates a horizontal separator (a line) within a dialog.

Syntax

planetcnc.dlg_add_separator(handle)

Parameters

Parameter Type Description Comment
handle string Handle of the dialog where the separator is added.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
dlg_handle = planetcnc.dlg_new("Examples")
 
# Creates separators
planetcnc.dlg_add_label(dlg_handle, "", "Hello, World!")
 
planetcnc.dlg_add_separator(dlg_handle)
planetcnc.dlg_add_label(dlg_handle, "", "Hello, World!")
 
planetcnc.dlg_add_separator(dlg_handle)
planetcnc.dlg_add_label(dlg_handle, "", "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