summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
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 {