Added a more comprehensive test of the basics. Woo! Now to convert the test that's in main.swift_...
This commit is contained in:
parent
02991879bc
commit
9431ed5851
|
@ -16,8 +16,17 @@ func appLaunched() {
|
||||||
var box = Box(vertical: firstvert, padded: spaced)
|
var box = Box(vertical: firstvert, padded: spaced)
|
||||||
mainwin.SetControl(box)
|
mainwin.SetControl(box)
|
||||||
|
|
||||||
box.Add(Entry(), false)
|
var hbox = {(entrys: Bool, buttons: Bool) -> Box in
|
||||||
box.Add(Button("Button"), false)
|
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()
|
mainwin.Show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue