summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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