diff options
| author | Jeff Carr <[email protected]> | 2024-12-05 12:29:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-05 12:29:47 -0600 |
| commit | 816760d1372d6d1922a9916f3150e49f3fd562cd (patch) | |
| tree | 0889b24fabb5d35dc0db53d0bbf71a985427c89b /doGui.go | |
| parent | 0463030e80f480f0d38989f4231db8b1651b40bc (diff) | |
developing on this now
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go new file mode 100644 index 0000000..b412df5 --- /dev/null +++ b/doGui.go @@ -0,0 +1,40 @@ +package main + +// An app to submit patches for the 30 GO GUI repos + +import ( + "go.wit.com/gui" + "go.wit.com/lib/gadgets" + "go.wit.com/log" +) + +func doGui() { + me.myGui = gui.New() + me.myGui.Default() + + me.mainWindow = gadgets.RawBasicWindow("submit & test patchsets") + me.mainWindow.Make() + me.mainWindow.Show() + 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.Enable() + + // intermittently scans the status indefinitly + me.repos.View.Watchdog(func() { + log.Info("In main()") + // processing is done. update the repo summary box + me.summary.Update() + }) +} |
