summaryrefslogtreecommitdiff
path: root/basicWindow.go
diff options
context:
space:
mode:
Diffstat (limited to 'basicWindow.go')
-rw-r--r--basicWindow.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/basicWindow.go b/basicWindow.go
new file mode 100644
index 0000000..b4f864a
--- /dev/null
+++ b/basicWindow.go
@@ -0,0 +1,20 @@
+// This creates a simple hello world window
+package main
+
+import (
+ "go.wit.com/lib/gadgets"
+ "go.wit.com/log"
+)
+
+// This initializes the first window, a group and a button
+func makebasicWindow() {
+ log.Warn("start basicWindow")
+ basicWindow = gadgets.NewBasicWindow(myGui, "basic window test")
+ basicWindow.Make()
+ basicWindow.StandardExit()
+
+ box1 := basicWindow.Box()
+ group1 := box1.NewGroup("choices")
+ group1.NewButton("hello", func() {})
+ basicWindow.Draw()
+}