diff options
| author | Jeff Carr <[email protected]> | 2024-02-19 19:42:42 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-19 19:42:42 -0600 |
| commit | 1e54385f2a6529d25be4da130909dd56ac5f583b (patch) | |
| tree | 7406809edcc2a20e7bafa90dd0212d8964807591 | |
| parent | 857d95e4a8139e18782355f5869d5d5af582e53f (diff) | |
use the common SetLabel() functionv0.20.8
| -rw-r--r-- | setText.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
