summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-12-12 19:52:22 -0500
committerPietro Gagliardi <[email protected]>2015-12-12 19:52:22 -0500
commit3734c3e552d59ad084ffdf0b1888477476da60ef (patch)
treeb95514b985ae6a788e38db9b637b0b98b5876bda /zz_test.go
parentbb6cb14569ced2141a7f8ea9818f354765ff79f0 (diff)
Added Tab. That just leaves Box...
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/zz_test.go b/zz_test.go
index 742fb9a..cc5ff74 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -11,14 +11,12 @@ func TestIt(t *testing.T) {
Quit()
return true
})
- s := NewGroup("Group")
- w.SetChild(s)
+ t := NewTab()
+ w.SetChild(t)
w.SetMargined(true)
- b := NewButton("Click Me")
- b.OnClicked(func(*Button) {
- s.SetMargined(!s.Margined())
- })
- s.SetChild(b)
+ t.Append("First Page", NewButton("Click Me"))
+ t.Append("Second Page", NewButton("Click Me Too"))
+ t.SetMargined(0, true)
w.Show()
})
if err != nil {