summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/main.go b/main.go
index 09c0fe1..5745c51 100644
--- a/main.go
+++ b/main.go
@@ -9,14 +9,10 @@ func main() {
w := NewWindow("Main Window", 320, 240)
w.Closing = make(chan struct{})
b := NewButton("Click Me")
- err := w.Open(b)
- if err != nil {
- panic(err)
- }
-
- w2 := NewWindow("Checkbox Window", 200, 100)
c := NewCheckbox("Check Me")
- err = w2.Open(c)
+ s := NewStack(Vertical)
+ s.Controls = []Control{b, c}
+ err := w.Open(s)
if err != nil {
panic(err)
}