Skip to content

pyui.create_label

daniel-flassig edited this page May 3, 2020 · 22 revisions

Create a label or static text. Labels are most often used to label/describe another control (in this case, consider pyui.create_label_left() or pyui.create_label_top() which may result in a tighter layout). Sometimes, labels are used to display a value to the user (in this case, consider pyui.create_text_display()). And sometimes, labels stand on their, e.g., for some instruction text (in this case, pyui.create_label() is the right function).

pyui.create_label(dialog, col_spec [,text])
dialog:create_label(col_spec, text)

Parameters

Name Type Description
col_spec integer or {first, last} Index of the column or specification of the column-span, where the control is placed.
text string Initial text-content of the label

Return value

Type Description
control_handle A handle to the newly created control

See also

Control Gallery, set_control_text, create_label_left, create_label_top

Clone this wiki locally