diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 16:42:02 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 16:42:02 -0500 |
| commit | d011972b708cb5cab8e95c1c5f9459c3a451c277 (patch) | |
| tree | 388c1d7efe3556103ff0a7ea4751175f4b8a0c0e | |
| parent | 887811f7885564fb489e7b333ec1281be4d01836 (diff) | |
change around the gui
| -rw-r--r-- | doGui.go | 22 |
1 files changed, 9 insertions, 13 deletions
@@ -16,18 +16,15 @@ import ( func doGui() { log.Warn("init basicWindow state") - win := gadgets.RawBasicWindow("Create .deb files for GO applications") - win.Make() + win := gadgets.NewGenericWindow("Create .deb files for GO applications", "things") win.Custom = func() { log.Info("got to close") os.Exit(0) } - box1 := win.Box() - // me.cBox = newControl(box1) - cbox := newControl(box1) + var cbox *controlBox - vbox := box1.Box().Horizontal() + vbox := win.Middle.Box().Horizontal() group1 := vbox.NewGroup("controls").Horizontal() // Vertical() group1.NewButton("go build", func() { @@ -59,20 +56,19 @@ func doGui() { log.Info("build worked") os.Exit(0) } else { - log.Warn("build failed", err) + log.Warn("build failed with err:", err) } win.Enable() }) - win.Show() + grid := win.Middle.RawGrid() + cbox = newControl(grid) } // This initializes the control box -func newControl(parent *gui.Node) *controlBox { - var c *controlBox - c = new(controlBox) - c.group = parent.NewGroup("choices") - c.grid = c.group.NewGrid("gridiron", 8, 1) +func newControl(grid *gui.Node) *controlBox { + c := new(controlBox) + c.grid = grid c.Package = gadgets.NewOneLiner(c.grid, "Package") c.grid.NextRow() |
