2024-01-01 16:11:54 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-01-16 12:55:20 -06:00
|
|
|
"go.wit.com/gui/widget"
|
|
|
|
|
2024-01-15 16:11:40 -06:00
|
|
|
"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)
|
|
|
|
|
2024-01-16 12:55:20 -06:00
|
|
|
g := ui.NewGroup(widget.GetString(n.value))
|
2024-01-15 16:11:40 -06:00
|
|
|
g.SetMargined(true)
|
2024-01-01 16:11:54 -06:00
|
|
|
newt.uiGroup = g
|
|
|
|
newt.uiControl = g
|
|
|
|
|
|
|
|
n.tk = newt
|
|
|
|
p.place(n)
|
|
|
|
}
|