diff options
| author | Pietro Gagliardi <[email protected]> | 2015-12-12 21:44:50 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-12-12 21:44:50 -0500 |
| commit | 38c3288c6b5a9a57374e1645ee11753364747231 (patch) | |
| tree | 574ad13746246741ef3f3e9f8831727e40779714 /zz_test.go | |
| parent | 53a1b6115d3b94f330a727282ac87a6bd361c91c (diff) | |
Ported the test page 1 from libui.
Diffstat (limited to 'zz_test.go')
| -rw-r--r-- | zz_test.go | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -13,6 +13,9 @@ var ( swaphv = flag.Bool("swaphv", false, "Swap horizontal and vertical boxes") ) +var mainbox *Box +var mainTab *Tab + func xmain() { if !*nomenus { // TODO @@ -29,16 +32,17 @@ func xmain() { return true }) - mainbox := newHorizontalBox() + mainbox = newHorizontalBox() w.SetChild(mainbox) outerTab := newTab() mainbox.Append(outerTab, true) - mainTab := newTab() + mainTab = newTab() outerTab.Append("Original", mainTab) - // TODO + makePage1(w) + mainTab.Append("Page 1", page1) mainTab.Append("Page 2", makePage2()) |
