diff options
Diffstat (limited to 'basicLabel.go')
| -rw-r--r-- | basicLabel.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/basicLabel.go b/basicLabel.go index 468c44e..36915e2 100644 --- a/basicLabel.go +++ b/basicLabel.go @@ -1,28 +1,28 @@ /* - A Labeled label: +A Labeled label: - ----------------------------- - | | | - | Food: | Apple | - | | | - ----------------------------- +----------------------------- +| | | +| Food: | Apple | +| | | +----------------------------- */ package gadgets -import ( +import ( + "go.wit.com/gui" "go.wit.com/log" - "go.wit.com/gui/gui" ) type Node gui.Node type BasicLabel struct { - p *gui.Node // parent widget - l *gui.Node // label widget - v *gui.Node // value widget + p *gui.Node // parent widget + l *gui.Node // label widget + v *gui.Node // value widget - value string - label string + value string + label string Custom func() } @@ -45,8 +45,8 @@ func (n *BasicLabel) Set(value string) *BasicLabel { func (ngui *Node) NewBasicLabel(name string) *BasicLabel { var n *gui.Node n = (*gui.Node)(ngui) - d := BasicLabel { - p: n, + d := BasicLabel{ + p: n, value: "", } |
