summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-12-12 19:37:57 -0500
committerPietro Gagliardi <[email protected]>2015-12-12 19:37:57 -0500
commitbb6cb14569ced2141a7f8ea9818f354765ff79f0 (patch)
tree73ef51c0a123aa1a666ac83613246fba7ce84893 /zz_test.go
parent9fe564753c5a2677b25dd671441187f9463ffcf7 (diff)
Added Group.
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/zz_test.go b/zz_test.go
index b642210..742fb9a 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -11,9 +11,14 @@ func TestIt(t *testing.T) {
Quit()
return true
})
- s := NewSlider(0, 100)
+ s := NewGroup("Group")
w.SetChild(s)
w.SetMargined(true)
+ b := NewButton("Click Me")
+ b.OnClicked(func(*Button) {
+ s.SetMargined(!s.Margined())
+ })
+ s.SetChild(b)
w.Show()
})
if err != nil {