diff options
| author | Jeff Carr <[email protected]> | 2024-01-16 11:56:55 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-16 11:56:55 -0600 |
| commit | 6a34c69970cc98c76ee5f94428047d6a2e11c353 (patch) | |
| tree | e874880e0280462b0bd7b7de2ad32d9e350b7d42 /main.go | |
| parent | 0dd8cd9deaf2e8b1ac2537dfcefd76ac484e35e8 (diff) | |
global window opens and closes repo window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -20,6 +20,7 @@ func main() { myGui.InitEmbed(resToolkit) myGui.Default() + autotypistWindow() repoworld() log.Sleep(.3) hidePerfect() @@ -72,11 +73,24 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri allrepos = append(allrepos, newRepo) } +func autotypistWindow() { + me.autotypistWindow = gadgets.NewBasicWindow(myGui, "autotypist for GO & git. it types faster than you can.") + me.autotypistWindow.Make() + me.autotypistWindow.StandardExit() + + box := me.autotypistWindow.Box() + globalDisplayOptions(box) + globalBuildOptions(box) + globalResetOptions(box) + me.autotypistWindow.Draw() + +} + // This creates a window func repoworld() { reposwin = gadgets.NewBasicWindow(myGui, "autotypist for GO & git. it types faster than you can.") reposwin.Make() - reposwin.StandardExit() + // reposwin.StandardExit() reposbox = reposwin.Box().NewBox("bw vbox", false) reposgroup = reposbox.NewGroup("go repositories (read from ~/.config/myrepolist)") @@ -105,11 +119,13 @@ func repoworld() { addRepo(reposgrid, path, mbranch, dbranch, ubranch) } + /* box2 := reposwin.Box().NewBox("bw vbox", false) globalDisplayOptions(box2) globalBuildOptions(box2) globalResetOptions(box2) + */ - reposwin.Draw() + // reposwin.Draw() } |
