Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-04-23 11:30:39 -05:00
parent 59c75bef00
commit 0405ab64a4
2 changed files with 10 additions and 12 deletions

View File

@ -10,15 +10,6 @@ import (
var myGui *gui.Node
var mainWindow *gui.Node
func initGUI() {
myGui = gui.New().LoadToolkit("gocui")
mainWindow = myGui.NewWindow("wit new machine setup").SetText("wit new machine setup")
mainWindow.Custom = customExit
mainTab(mainWindow)
}
func customExit() {
log.Println("Should Exit Here")
// window := gui.Data.WindowMap["Debugging2"]
@ -40,10 +31,14 @@ func writeRes(indir string, outdir string, name string) {
ioutil.WriteFile(outdir + name, tmp, 0644)
}
func mainTab(n *gui.Node) {
// myGui = gui.New().LoadToolkit("gocui")
func drawWindow() {
var g *gui.Node
newTab := n.NewTab("mainTab")
mainWindow = myGui.NewWindow("wit new machine setup").SetText("wit new machine setup")
mainWindow.Custom = customExit
newTab := mainWindow.NewTab("mainTab")
//////////////////// General GUI debugging /////////////////////////
g = newTab.NewGroup("Debug")

View File

@ -50,7 +50,10 @@ func main() {
os.Exit(0)
}
initGUI()
// myGui = gui.New().LoadToolkit("gocui")
myGui = gui.New().Default()
drawWindow()
gui.Watchdog()
}