2022-10-21 11:40:08 -05:00
|
|
|
package gui
|
|
|
|
|
2023-03-01 11:35:36 -06:00
|
|
|
import (
|
|
|
|
"git.wit.org/wit/gui/toolkit"
|
|
|
|
)
|
2022-10-21 11:40:08 -05:00
|
|
|
|
2023-05-09 18:50:16 -05:00
|
|
|
func (parent *Node) NewTextbox(name string) *Node {
|
|
|
|
newNode := parent.newNode(name, toolkit.Textbox, func() {
|
2023-03-23 12:35:12 -05:00
|
|
|
log(debugGui, "NewTextbox changed =", name)
|
2023-03-01 11:35:36 -06:00
|
|
|
})
|
2022-10-21 11:40:08 -05:00
|
|
|
|
2023-05-09 18:50:16 -05:00
|
|
|
a := newAction(newNode, toolkit.Add)
|
2023-05-09 18:53:31 -05:00
|
|
|
sendAction(a)
|
2022-11-13 08:53:03 -06:00
|
|
|
return newNode
|
2022-10-21 11:40:08 -05:00
|
|
|
}
|