This module is only available from the UI process Lua state.
The label widget shows a single line of formatted text. It is not editable by the user.
The widget padding. Table has two fields,
y, representing the vertical and horizontal padding respectively, in pixels.
Available only for older versions of GTK (< 2.14).
The text alignment. Table has two fields,
y, representing the vertical and horizontal alignment respectively. Values should be between 0--1, where 0 means aligned to the left/top, and 1 means aligned to the right/bottom.
Text to display in the widget. This property uses Pango markup.
The color of the text displayed by the widget. This can be changed with markup set by the
The background color of the label widget.
The font to use to display the label text.
Whether the text can be selected by dragging with the mouse cursor.
The desired width of the label, in characters.
Emitted when a key is pressed while the label widget has the input focus.
modifiersType: tableAn array of strings, one for each modifier key held.
keyType: stringThe key that was pressed, if printable, or a keysym otherwise.
trueif the event has been handled and should not be propagated further.
- 2010 Mason Larobina