summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-19 19:42:42 -0600
committerJeff Carr <[email protected]>2024-02-19 19:42:42 -0600
commit1e54385f2a6529d25be4da130909dd56ac5f583b (patch)
tree7406809edcc2a20e7bafa90dd0212d8964807591
parent857d95e4a8139e18782355f5869d5d5af582e53f (diff)
use the common SetLabel() functionv0.20.8
-rw-r--r--setText.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/setText.go b/setText.go
index 67b7f4c..4bc85dc 100644
--- a/setText.go
+++ b/setText.go
@@ -48,13 +48,13 @@ func (n *Node) SetText(text string) *Node {
switch n.WidgetType {
case widget.Checkbox:
- n.label = text
+ n.SetLabel(text)
case widget.Button:
- n.label = text
+ n.SetLabel(text)
case widget.Label:
- n.label = text
+ n.SetLabel(text)
case widget.Group:
- n.label = text
+ n.SetLabel(text)
case widget.Combobox:
n.newString = text
n.currentS = text