new

fun new(str: String? = null): Label

Creates a new label with the given text inside it.

You can pass null to get an empty label widget.

Return

the new GtkLabel

Parameters

str

The text of the label