From 3cba5b018c99ea1eed4ec9f102e824aa29592d87 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 8 Aug 2015 23:46:29 -0400 Subject: [PATCH] Reimplemented the old main.swift_. Spinbox still has issues, it seems. --- redo/osxaltest/main.swift | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/redo/osxaltest/main.swift b/redo/osxaltest/main.swift index c67f5ecc..8ae96509 100644 --- a/redo/osxaltest/main.swift +++ b/redo/osxaltest/main.swift @@ -30,7 +30,7 @@ func appLaunched() { box.Add(hbox(false, false), false) */ - box.Add(Entry(), false) + box.Add(Spinbox(), false) var mkhbox = {() -> Box in Box(vertical: !firstvert, padded: spaced) @@ -53,6 +53,20 @@ func appLaunched() { hbox.Add(Button("CCC"), 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() keepAliveMainwin = mainwin