diff options
| author | Jeff Carr <[email protected]> | 2024-01-17 21:46:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-17 21:46:50 -0600 |
| commit | 32fe455bb5c75b756ca0ff7e2a5d076a30978db4 (patch) | |
| tree | 252a5e804d86d78a41cdca4f83b460baee71bfb3 /basicLabel.go | |
| parent | 751b6059c0432ede8de32656b777196cfdd6adaf (diff) | |
now should work without needed to actually displayv0.12.6
a nice improvement. actual toolkit widgets
arent' actually needed. It's faster
and can run in the dark
autotypist compiles and runs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'basicLabel.go')
| -rw-r--r-- | basicLabel.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/basicLabel.go b/basicLabel.go index fc410d3..468c44e 100644 --- a/basicLabel.go +++ b/basicLabel.go @@ -27,6 +27,7 @@ type BasicLabel struct { Custom func() } +/* func (n *BasicLabel) Get() string { return n.value } @@ -39,6 +40,7 @@ func (n *BasicLabel) Set(value string) *BasicLabel { n.value = value return n } +*/ func (ngui *Node) NewBasicLabel(name string) *BasicLabel { var n *gui.Node @@ -52,7 +54,7 @@ func (ngui *Node) NewBasicLabel(name string) *BasicLabel { d.l = n.NewLabel(name) d.v = n.NewLabel("") d.v.Custom = func() { - d.value = d.v.GetText() + d.value = d.v.String() log.Log(INFO, "BasicLabel.Custom() user changed value to =", d.value) } |
