summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-01 18:57:50 -0500
committerJeff Carr <[email protected]>2025-09-01 18:57:50 -0500
commit26d674c800eff651fb174484da39ddf3eddcd33b (patch)
treedc2e8dae1e0787927238c3ba49e7e8d5823474d3 /doGui.go
parent5dadf3b5ef3f58c80c7a62f96a0a62b4a784961b (diff)
initial table dumps to STDOUT
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/doGui.go b/doGui.go
index 157eed0..4be20d2 100644
--- a/doGui.go
+++ b/doGui.go
@@ -11,7 +11,9 @@ import (
"time"
"go.wit.com/gui"
+ "go.wit.com/lib/debugger"
"go.wit.com/lib/gadgets"
+ "go.wit.com/lib/gui/logsettings"
"go.wit.com/log"
)
@@ -29,13 +31,14 @@ func doGui() {
me.myGui.Default()
me.mainWindow = gadgets.NewGenericWindow("regex: a WIT Cloud private AI tool", "Current Conversations")
+
+ drawWindow(me.mainWindow)
+
me.mainWindow.Custom = func() {
log.Warn("MAIN WINDOW CLOSE")
os.Exit(0)
}
- drawWindow(me.mainWindow)
-
// sits here forever
debug()
@@ -67,6 +70,13 @@ func drawWindow(win *gadgets.GenericWindow) {
}
oldWin = makeOldStuff()
})
+
+ grid.NewButton("debugger", func() {
+ debugger.DebugWindow()
+ })
+ grid.NewButton("logging", func() {
+ logsettings.LogWindow()
+ })
}
// old things before they are removed, deprecated, fixed, etc