summaryrefslogtreecommitdiff
path: root/zz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'zz_test.go')
-rw-r--r--zz_test.go14
1 files changed, 9 insertions, 5 deletions
diff --git a/zz_test.go b/zz_test.go
index cc5ff74..cd9cac5 100644
--- a/zz_test.go
+++ b/zz_test.go
@@ -11,12 +11,16 @@ func TestIt(t *testing.T) {
Quit()
return true
})
- t := NewTab()
- w.SetChild(t)
+ b := NewVerticalBox()
+ w.SetChild(b)
w.SetMargined(true)
- t.Append("First Page", NewButton("Click Me"))
- t.Append("Second Page", NewButton("Click Me Too"))
- t.SetMargined(0, true)
+ button := NewButton("Click Me")
+ button.OnClicked(func(*Button) {
+ b.SetPadded(!b.Padded())
+ })
+ b.Append(button, true)
+ b.Append(NewButton("Button 2"), false)
+ b.Append(NewButton("Button 3"), true)
w.Show()
})
if err != nil {