From 8dbf5a09097b7868e9218bf98716c57eac998a10 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 1 Mar 2023 11:35:36 -0600 Subject: lots cleaner code between the plugin Queue() around SetText is helping userspace crashing merge forceDump(bool) into Dump() debugging output configuration is pretty clean keep cutting down duplicate things --gui-verbose flag works make label "standard" code add debug.FreeOSMemory() move the GO language internals to display in the GUI update push to do tags and go to github.com/wit-go/ remove the other license file it might be confusing golang.org and github proper WidgetType added a Quit() button Signed-off-by: Jeff Carr --- cmds/buttonplugin/Makefile | 4 ++-- cmds/buttonplugin/main.go | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'cmds/buttonplugin') diff --git a/cmds/buttonplugin/Makefile b/cmds/buttonplugin/Makefile index faa8882..49d190c 100644 --- a/cmds/buttonplugin/Makefile +++ b/cmds/buttonplugin/Makefile @@ -7,8 +7,8 @@ # run: build - ./buttonplugin >/tmp/buttonplugin.log 2>&1 - # ./buttonplugin + # ./buttonplugin >/tmp/buttonplugin.log 2>&1 + ./buttonplugin build-release: go get -v -u -x . diff --git a/cmds/buttonplugin/main.go b/cmds/buttonplugin/main.go index 6132ed6..9ed47fa 100644 --- a/cmds/buttonplugin/main.go +++ b/cmds/buttonplugin/main.go @@ -42,7 +42,7 @@ func main() { log.Println("Main() END") time.Sleep(1 * time.Second) gui.Watchdog() - gui.StandardExit(nil) + gui.StandardExit() } var counter int = 5 @@ -82,7 +82,9 @@ func buttonWindow() { }) g.NewButton("gui.GolangDebugWindow()", func () { - gui.GolangDebugWindow() + // make a seperate window out of this + // w.GolangDebugWindow(false) + w.GolangDebugWindow(true) }) g.NewButton("LoadToolkit(andlabs)", func () { -- cgit v1.2.3