Reimplemented the old main.swift_. Spinbox still has issues, it seems.

This commit is contained in:
Pietro Gagliardi 2015-08-08 23:46:29 -04:00
parent 5964af433a
commit 3cba5b018c
1 changed files with 15 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func appLaunched() {
box.Add(hbox(false, false), false) box.Add(hbox(false, false), false)
*/ */
box.Add(Entry(), false) box.Add(Spinbox(), false)
var mkhbox = {() -> Box in var mkhbox = {() -> Box in
Box(vertical: !firstvert, padded: spaced) Box(vertical: !firstvert, padded: spaced)
@ -53,6 +53,20 @@ func appLaunched() {
hbox.Add(Button("CCC"), false) hbox.Add(Button("CCC"), false)
box.Add(hbox, false) box.Add(hbox, false)
hbox = mkhbox()
hbox.Add(Spinbox(), false)
hbox.Add(Spinbox(), true)
box.Add(hbox, false)
hbox = mkhbox()
hbox.Add(Entry(), true)
hbox.Add(Entry(), false)
box.Add(hbox, false)
hbox = mkhbox()
hbox.Add(Label(), false)
box.Add(hbox, false)
mainwin.Show() mainwin.Show()
keepAliveMainwin = mainwin keepAliveMainwin = mainwin