Added a more comprehensive test of the basics. Woo! Now to convert the test that's in main.swift_...

This commit is contained in:
Pietro Gagliardi 2015-08-08 22:04:03 -04:00
parent 02991879bc
commit 9431ed5851
1 changed files with 11 additions and 2 deletions

View File

@ -16,8 +16,17 @@ func appLaunched() {
var box = Box(vertical: firstvert, padded: spaced)
mainwin.SetControl(box)
box.Add(Entry(), false)
box.Add(Button("Button"), false)
var hbox = {(entrys: Bool, buttons: Bool) -> Box in
var hbox = Box(vertical: !firstvert, padded: spaced)
hbox.Add(Entry(), entrys)
hbox.Add(Button("Button"), buttons)
return hbox
}
box.Add(hbox(true, true), false)
box.Add(hbox(true, false), false)
box.Add(hbox(false, true), false)
box.Add(hbox(false, false), false)
mainwin.Show()