summaryrefslogtreecommitdiff
path: root/group.go
blob: e764ea12db2812030698737de7ae1bb219d3e1ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package gui

import (
	"go.wit.com/lib/widget"
)

// TODO: make a "Group" a "Grid" ?
// probably since right now group is just a
// pre-canned andlabs/ui gtk,macos,windows thing
func (parent *Node) NewGroup(name string) *Node {
	var newNode *Node
	newNode = parent.newNode(name, widget.Group)
	newNode.progname = name
	newNode.label = name

	// inform the toolkits
	sendAction(newNode, widget.Add)
	return newNode
}