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