Reimplemented the old main.swift_. Spinbox still has issues, it seems.
This commit is contained in:
parent
5964af433a
commit
3cba5b018c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue