From 5ba335ddee0e321fc1bb09c5b6eb096bdd124291 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 6 Apr 2023 23:58:22 -0500 Subject: [PATCH] show the gocui in the example Signed-off-by: Jeff Carr --- cmds/buttonplugin/main.go | 2 ++ debug.go | 4 ---- 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