Gtk.Label.new

function new(str:String):Gtk.Widget {
    // Gjs wrapper for gtk_label_new()
}

Creates a new label with the given text inside it. You can pass null to get an empty label widget.

str

The text of the label

Returns

the new Gtk.Label