diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..85e5bbb --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module go.wit.com/gui/cloudflare + +go 1.21.4 diff --git a/mainWindow.go b/mainWindow.go index 3655600..5903d4c 100644 --- a/mainWindow.go +++ b/mainWindow.go @@ -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