diff options
| author | Pietro Gagliardi <[email protected]> | 2015-12-12 19:37:57 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-12-12 19:37:57 -0500 |
| commit | bb6cb14569ced2141a7f8ea9818f354765ff79f0 (patch) | |
| tree | 73ef51c0a123aa1a666ac83613246fba7ce84893 /zz_test.go | |
| parent | 9fe564753c5a2677b25dd671441187f9463ffcf7 (diff) | |
Added Group.
Diffstat (limited to 'zz_test.go')
| -rw-r--r-- | zz_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 { |
