summaryrefslogtreecommitdiff
path: root/newctrl/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-10-17 13:08:54 -0400
committerPietro Gagliardi <[email protected]>2014-10-17 13:08:54 -0400
commit48be573b22173e09cb195ea71f55fee288481431 (patch)
tree085739f02930bf8a770c92954042e76bb09858d7 /newctrl/zz_test.go
parentbdadfe232d16b3d6ae00f817d1c7789c768ea42f (diff)
Implemented Padded in SImpleGrid.
Diffstat (limited to 'newctrl/zz_test.go')
-rw-r--r--newctrl/zz_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/newctrl/zz_test.go b/newctrl/zz_test.go
index 0097745..3f2f079 100644
--- a/newctrl/zz_test.go
+++ b/newctrl/zz_test.go
@@ -32,6 +32,12 @@ func newVerticalStack(c ...Control) Stack {
return s
}
+func newSimpleGrid(n int, c ...Control) SimpleGrid {
+ g := NewSimpleGrid(n, c...)
+ g.SetPadded(*spaced)
+ return g
+}
+
type dtype struct {
Name string
Address string
@@ -189,7 +195,7 @@ func (tw *testwin) make(done chan struct{}) {
tw.group = NewGroup("Group", newVerticalStack(NewCheckbox("Checkbox in Group")))
tw.group.SetMargined(*spaced)
tw.t.Append("Group", tw.group)
- tw.simpleGrid = NewSimpleGrid(3,
+ tw.simpleGrid = newSimpleGrid(3,
NewLabel("0,0"), NewTextField(), NewLabel("0,2"),
NewButton("1,0"), NewButton("1,1"), NewButton("1,2"),
NewLabel("2,0"), NewTextField(), NewLabel("2,2"))