summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-06 23:58:22 -0500
committerJeff Carr <[email protected]>2023-04-06 23:58:22 -0500
commitba35c2760687384055d2b7ae733e0f9ac814af4c (patch)
treed571fc5aee20479f848e2705024f1448c271f2ef
parent3d8d2d8b4d6d090b1c9a9dd64cd633ec38ac956f (diff)
show the gocui in the example
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--cmds/buttonplugin/main.go2
-rw-r--r--debug.go4
2 files changed, 2 insertions, 4 deletions
diff --git a/cmds/buttonplugin/main.go b/cmds/buttonplugin/main.go
index efecba9..5636a87 100644
--- a/cmds/buttonplugin/main.go
+++ b/cmds/buttonplugin/main.go
@@ -44,6 +44,8 @@ func main() {
})
log.Println("Main() END")
time.Sleep(1 * time.Second)
+ gui.StartS("gocui")
+ gui.Redraw("gocui")
gui.Watchdog()
gui.StandardExit()
}
diff --git a/debug.go b/debug.go
index ffe15fd..4f5340d 100644
--- a/debug.go
+++ b/debug.go
@@ -130,10 +130,6 @@ func (n *Node) dumpWidget(b bool) string {
}
info = n.WidgetType.String()
- if (n.WidgetType == toolkit.Checkbox) {
- info += " = " + strconv.FormatBool(n.widget.B)
- }
-
d = strconv.Itoa(n.id) + " " + info
var tabs string