summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/main.go b/main.go
index ba69003..bdc67c2 100644
--- a/main.go
+++ b/main.go
@@ -18,12 +18,13 @@ var resToolkit embed.FS
func main() {
myGui = gui.New()
myGui.InitEmbed(resToolkit)
+ myGui.LoadToolkit("nocui")
myGui.Default()
autotypistWindow()
// repoworld()
log.Sleep(.3)
- hidePerfect()
+ // hidePerfect()
gui.Watchdog()
}
@@ -74,12 +75,16 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
}
func autotypistWindow() {
+ /*
me.autotypistWindow = gadgets.NewBasicWindow(myGui, "autotypist for GO & git. it types faster than you can.")
me.autotypistWindow.Make()
me.autotypistWindow.StandardExit()
- me.autotypistWindow.Draw()
box := me.autotypistWindow.Box()
+ me.autotypistWindow.Draw()
+ */
+ win := myGui.NewWindow("autotypist for GO & git. it types faster than you can.")
+ box := win.NewBox("bw hbox", true)
globalDisplayOptions(box)
globalBuildOptions(box)
globalResetOptions(box)
@@ -90,7 +95,6 @@ func autotypistWindow() {
func repoworld() {
reposwin = gadgets.NewBasicWindow(myGui, "All git repositories in ~/go/src/")
reposwin.Make()
- // reposwin.StandardExit()
reposbox = reposwin.Box().NewBox("bw vbox", false)
reposgroup = reposbox.NewGroup("go repositories (read from ~/.config/myrepolist)")
@@ -118,4 +122,5 @@ func repoworld() {
if ubranch == "" { ubranch = usr.Username }
addRepo(reposgrid, path, mbranch, dbranch, ubranch)
}
+ reposwin.Draw()
}