diff options
| author | Jeff Carr <[email protected]> | 2024-01-27 09:04:43 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-27 09:04:43 -0600 |
| commit | a72024107be0c01375508d7ac732fc29a4bad8e7 (patch) | |
| tree | 47bbc001af74c3ff89bd9919306fb881b51daf8d /main.go | |
| parent | 0bdabc5747163859ddf88e0ea0a4b1712a658bb9 (diff) | |
nocui works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -23,8 +23,10 @@ var section1 *choices var section2 *choices func main() { + log.SetAll(true) + log.ShowFlags() myGui = gui.New() - myGui.LoadToolkit("andlabs") + // myGui.LoadToolkit("andlabs") // myGui.LoadToolkit("nocui") myGui.Default() @@ -32,6 +34,14 @@ func main() { helloworld() basicWindow = makebasicWindow() + // run the debugger if triggered from the commandline + if debugger.ArgDebug() { + go func() { + log.Sleep(2) + debugger.DebugWindow() + }() + } + // go will sit here until the window exits gui.Watchdog() } |
