summaryrefslogtreecommitdiff
path: root/stateWindow.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-11 01:00:05 -0600
committerJeff Carr <[email protected]>2024-02-11 01:00:05 -0600
commitb29d6caf34e72af362f791a5cba7dbd06e7fd1a2 (patch)
treeec37cefac915ac54a40fb2eac7ae2f55261477f3 /stateWindow.go
initial commit
Diffstat (limited to 'stateWindow.go')
-rw-r--r--stateWindow.go48
1 files changed, 48 insertions, 0 deletions
diff --git a/stateWindow.go b/stateWindow.go
new file mode 100644
index 0000000..84d82e8
--- /dev/null
+++ b/stateWindow.go
@@ -0,0 +1,48 @@
+// This window, when it's hidden, still exists to the application
+// so it can be treated as if it really exists
+package main
+
+import (
+ "os"
+
+ "go.wit.com/gui"
+ "go.wit.com/lib/gadgets"
+ "go.wit.com/log"
+)
+
+var apple *gui.Node
+
+// This initializes the first window, a group and a button
+func makebasicWindow() *gadgets.BasicWindow {
+ log.Warn("init basicWindow state")
+ basicWindow = gadgets.NewBasicWindow(myGui, "Create .deb files for GO applications")
+ basicWindow.Make()
+ basicWindow.Custom = func() {
+ log.Info("got to close")
+ os.Exit(0)
+ }
+
+ box1 := basicWindow.Box()
+ newControl(box1)
+
+ // vbox := box1.NewBox("vbox", false)
+ // vbox := box1.Box().Vertical()
+ vbox := box1.Box().Horizontal()
+ group1 := vbox.NewGroup("controls").Horizontal() // Vertical()
+ group1.NewButton("go build", func() {
+ })
+ group1.NewButton("Make .deb", func() {
+ })
+ group1.NewButton("open repo", func() {
+ })
+ /*
+ group1.NewButton("show apple", func() {
+ apple.Show()
+ })
+ apple = group1.NewButton("apple", func() {
+ log.Info("is not a pear")
+ })
+ */
+
+ return basicWindow
+}