diff options
| author | Jeff Carr <[email protected]> | 2024-01-18 05:04:18 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-18 05:04:18 -0600 |
| commit | a8d95fef8d0879a3e3ecdac76ab4df4fee658fcf (patch) | |
| tree | d870cdb3147828e2a93bb99a84925b07b719216d /basicLabel.go | |
| parent | 76d6da5505900c50b72e3c84e86a521d9bcbc6bd (diff) | |
lots of syntax changesv0.12.8
Signed-off-by: Jeff Carr <[email protected]>
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: "", } |
