compiles and runs

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-14 10:25:21 -06:00
parent c22d0f4866
commit 85d74dd70d
1 changed files with 5 additions and 3 deletions

View File

@ -52,13 +52,13 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
log.Warn("status window exists. trying Show() here") log.Warn("status window exists. trying Show() here")
newRepo.status.Show() newRepo.status.Show()
}) })
grid.NewButton("TestDraw()", func () { grid.NewButton("Show()", func () {
if newRepo.status == nil { if newRepo.status == nil {
log.Warn("status window doesn't exist") log.Warn("status window doesn't exist")
return return
} }
log.Warn("status window exists. trying TestDraw() here") log.Warn("status window exists. trying TestDraw() here")
newRepo.status.TestDraw() newRepo.status.Show()
}) })
if path == "" { if path == "" {
newRepo.cButton.Hide() newRepo.cButton.Hide()
@ -76,6 +76,7 @@ func addRepo(grid *gui.Node, path string, master string, devel string, user stri
// This creates a window // This creates a window
func repoworld() { func repoworld() {
win := gadgets.NewBasicWindow(myGui, "git autotypist. it types faster than you can.") win := gadgets.NewBasicWindow(myGui, "git autotypist. it types faster than you can.")
win.Make()
box := win.Box().NewBox("bw vbox", false) box := win.Box().NewBox("bw vbox", false)
// box2 := win.Box().NewBox("bw vbox", false) // box2 := win.Box().NewBox("bw vbox", false)
@ -108,8 +109,9 @@ func repoworld() {
} }
box2 := win.Box().NewBox("bw vbox", false) box2 := win.Box().NewBox("bw vbox", false)
box2.NewButton("grid.Pad()", func () { box2.NewButton("grid.Margin()", func () {
grid.Margin() grid.Margin()
grid.Pad()
}) })
box2.NewButton("status.Update() all", func () { box2.NewButton("status.Update() all", func () {