summaryrefslogtreecommitdiff
path: root/textbox.go
blob: 5877b3214eb683b8c5c5ca3187a38eb382cdc78e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package gui

import (
	"git.wit.org/wit/gui/toolkit"
)

func (parent *Node) NewTextbox(name string) *Node {
	newNode := parent.newNode(name, toolkit.Textbox, func() {
		log(debugGui, "NewTextbox changed =", name)
	})

	a := newAction(newNode, toolkit.Add)
	sendAction(a)
	return newNode
}