1 2 3 4 5 6 7 8 9 10 11 12 13 14
package gui import ( "git.wit.org/wit/gui/toolkit" ) func (n *Node) NewLabel(text string) *Node { newNode := n.New(text, toolkit.Label, func() { log(debugChange, "TextBox changed", text) }) send(n, newNode) return newNode }