debian/andlabs/group.go

21 lines
316 B
Go
Raw Normal View History

2024-01-01 16:11:54 -06:00
package main
import (
"go.wit.com/gui/widget"
"go.wit.com/dev/andlabs/ui"
_ "go.wit.com/dev/andlabs/ui/winmanifest"
2024-01-01 16:11:54 -06:00
)
func (p *node) newGroup(n *node) {
newt := new(guiWidget)
g := ui.NewGroup(widget.GetString(n.value))
g.SetMargined(true)
2024-01-01 16:11:54 -06:00
newt.uiGroup = g
newt.uiControl = g
n.tk = newt
p.place(n)
}