From f3af1f5b7ff78b3f73d7510622fc9633dec36d35 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 19 Oct 2022 13:23:22 -0500 Subject: Refactor to 'gui/toolkit/' * add a example cmds/consolemouse uses a console button to launch the andlabs/ui * fix wrong return value in toolkit/NewLabel() * redirect STDIN output to a file * wonderful fix of Window() exit * finally remove the ancient stupid variables x & y * phase out struct 'box' and use 'node' instead * better names for things: use NewFoo() and NewBar() --- window-golang-debug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'window-golang-debug.go') diff --git a/window-golang-debug.go b/window-golang-debug.go index 1e47081..8598f3a 100644 --- a/window-golang-debug.go +++ b/window-golang-debug.go @@ -26,12 +26,12 @@ func GolangDebugWindow() { Config.Exit = StandardClose w = NewWindow() - t = w.AddTab("Debug Tab", nil) + t = w.NewTab("Debug Tab") log.Println("debugWindow() START") /////////////////////////////// Column DEBUG GOLANG ////////////////////// - g := t.NewGroup("GO Language") + g := t.AddGroup("GO Language") g.AddButton("runtime.Stack()", func (*Node) { log.Println("\tSTART") -- cgit v1.2.3