diff options
| author | Jeff Carr <[email protected]> | 2025-02-15 03:59:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-15 07:28:34 -0600 |
| commit | 25bc18c55f58949e5765b73af8b61ede8ac5eb12 (patch) | |
| tree | 820ce661f2a7c9263a108c8a17c8b52734036fe4 /doGui.go | |
| parent | 940d259bbf34dd643ac8a555dc003804fd036c43 (diff) | |
start a table window
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -49,14 +49,21 @@ func drawWindow(win *gadgets.BasicWindow) { group1 := vbox.NewGroup("Zookeeper Settings") grid := group1.NewGrid("buildOptions", 0, 0) - // select the branch you want to test, build and develop against - // this lets you select your user branch, but, when you are happy - // you can merge everything into the devel branch and make sure it actually - // works. Then, when that is good, merge and version everything in master + var tbwin *tableWindow grid.NewButton("show zoo", func() { win.Disable() defer win.Enable() + if tbwin != nil { + if tbwin.Hidden() { + tbwin.Show() + } else { + tbwin.Hide() + } + return + } + log.Info("show zoo here") + tbwin = makeTableWindow() }) } |
