Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-03 14:30:59 -06:00
parent f1a0d18ac1
commit c68e530e76
2 changed files with 4 additions and 24 deletions

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module go.wit.com/gui/cloudflare
go 1.21.4

View File

@ -54,7 +54,7 @@ func MakeCloudflareWindow(n *gui.Node) *gui.Node {
more := g1.NewGroup("data")
showCloudflareCredentials(more)
makeDebugWindow(CFdialog.mainWindow)
// makeDebugWindow(CFdialog.mainWindow)
return CFdialog.mainWindow
}
@ -114,29 +114,6 @@ func makeConfigWindow(n *gui.Node) {
g1.Margin()
}
func makeDebugWindow(window *gui.Node) {
t2 := window.NewTab("debug")
g := t2.NewGroup("debug")
g.NewButton("Load 'gocui'", func () {
CFdialog.rootGui.LoadToolkit("gocui")
})
g.NewButton("Load 'andlabs'", func () {
CFdialog.rootGui.LoadToolkit("andlabs")
})
g.NewButton("gui.DebugWindow()", func () {
gui.DebugWindow()
})
g.NewButton("List all Widgets", func () {
CFdialog.rootGui.ListChildren(true)
})
g.NewButton("Dump all Widgets", func () {
CFdialog.rootGui.Dump()
})
}
func showCloudflareCredentials(box *gui.Node) {
// make grid to display credentials
grid := box.NewGrid("credsGrid", 2, 4) // width = 2