package main // An app to submit patches for the 30 GO GUI repos import ( "os" "go.wit.com/gui" "go.wit.com/lib/debugger" "go.wit.com/lib/gadgets" "go.wit.com/log" ) func debug() { log.Info("cmd line --debugger == true") go func() { log.Sleep(3) log.Info("cmd line --debugger == true") log.Info("cmd line --debugger == true") log.Info("cmd line --debugger == true") log.Info("cmd line --debugger == true") debugger.DebugWindow() }() } func doGui() { me.myGui = gui.New() me.myGui.Default() // debug() me.mainWindow = gadgets.RawBasicWindow("Forge: (this doesn't work yet)") me.mainWindow.Make() me.mainWindow.Show() me.mainWindow.Custom = func() { log.Warn("MAIN WINDOW CLOSE") count := me.forge.RillReload() log.Info("Repo Reload count =", count) if count != 0 { me.forge.ConfigSave() } os.Exit(0) } me.mainbox = me.mainWindow.Box() // disable the interface while everything is scanned me.Disable() vbox2 := me.mainbox.NewVerticalBox("BOX2") globalBuildOptions(vbox2) me.summary = submitPatchesBox(vbox2) me.repos = makeRepoView() // processing is done. update the repo summary box me.summary.Update() me.summary.submitB.Disable() me.Enable() // intermittently scans the status indefinitly me.repos.View.Watchdog(func() { log.Info("Watchdog in doGui()") // processing is done. update the repo summary box me.summary.Update() }) }