diff options
Diffstat (limited to 'box.go')
| -rw-r--r-- | box.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -19,6 +19,14 @@ func (parent *Node) NewBox(progname string, b bool) *Node { return newNode } +func (parent *Node) Box() *Node { + newNode := parent.newNode("BOX", widget.Box) + + // inform the toolkits + sendAction(newNode, widget.Add) + return newNode +} + func (n *Node) Vertical() *Node { n.direction = widget.Horizontal return n |
