summaryrefslogtreecommitdiff
path: root/setText.go
diff options
context:
space:
mode:
Diffstat (limited to 'setText.go')
-rw-r--r--setText.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/setText.go b/setText.go
index 611f2c6..6f5bedf 100644
--- a/setText.go
+++ b/setText.go
@@ -55,6 +55,19 @@ func (n *Node) SetText(text string) *Node {
return n
}
+func (n *Node) SetValue(val any) {
+ if !n.Ready() {
+ return
+ }
+
+ n.value = val
+ n.changed = true
+ log.Log(CHANGE, "Set() value =", val)
+
+ // inform the toolkits
+ sendAction(n, widget.Set)
+}
+
func (n *Node) Set(val any) {
if !n.Ready() {
return