diff options
| author | Jeff Carr <[email protected]> | 2024-01-20 19:32:30 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-20 19:32:30 -0600 |
| commit | dfb7a47e8cccd82080de3d6ba97855eeb2be6593 (patch) | |
| tree | e2a8f4696984ec21eacd4ceba146618a35c456c7 /main.go | |
| parent | 7012aff2aebdc74d950d921262e0ddfa677761e4 (diff) | |
log settings works againv0.12.19
still dreaming of protobuf here
go mod update
show panic for now
finally drop sending stuff for non-visable windows
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -107,7 +107,7 @@ func watchCallback() { log.Warn("guiChan() Enable Debugging Window") log.Warn("guiChan() TODO: not implemented") log.Warn("guiChan() Listing Toolkits:") - PLUG.Set(true) + PLUG.SetBool(true) me.rootNode.ListToolkits() me.rootNode.ListChildren(true) /* @@ -134,7 +134,16 @@ func watchCallback() { // TODO: implement throttling someday func (n *Node) gotUserEvent(a widget.Action) { log.Info("gotUserEvent() received event node =", n.id, n.progname, a.Value) - n.value = a.Value + + switch n.WidgetType { + case widget.Checkbox: + // n.checked = a.State.Checked // TODO: do this and/or time to switch to protobuf + n.checked = widget.GetBool(a.Value) + default: + } + + n.SetValue(a.Value) + log.Info("gotUserEvent() n.Bool() =", n.Bool(), "n.String() =", n.String()) if n.Custom == nil { log.Info("a Custom() function was not set for this widget") return |
