summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/gui.go b/gui.go
new file mode 100644
index 0000000..8e9af9a
--- /dev/null
+++ b/gui.go
@@ -0,0 +1,19 @@
+package main
+
+import (
+ g "github.com/AllenDang/giu"
+)
+
+func loop(w *g.MasterWindow) func() {
+ return func() {
+ g.SingleWindow().Layout(
+ g.Align(g.AlignCenter).To(g.Label("Hello")),
+ g.Button("Quit").OnClick(w.Close),
+ )
+ }
+}
+
+func gui() {
+ w := g.NewMasterWindow("Engarde Importer", 400, 200, 0)
+ w.Run(loop(w))
+}