Keynav moment

This commit is contained in:
2023-01-11 22:30:14 -05:00
parent 80c0a6be71
commit 519e0b9c6b
9 changed files with 98 additions and 18 deletions

View File

@@ -20,8 +20,10 @@ func run () {
cancel := basic.NewButton("Cancel")
cancel.SetEnabled(false)
container.Adopt(cancel, false)
container.Adopt(basic.NewButton("OK"), false)
okButton := basic.NewButton("OK")
container.Adopt(okButton, false)
okButton.Select()
window.OnClose(tomo.Stop)
window.Show()
}

View File

@@ -24,12 +24,14 @@ func run () {
container.Adopt(basic.NewLabel("Draw here:", false), false)
container.Adopt(basic.NewTest(), true)
container.Adopt(okButton, false)
okButton.Select()
})
okButton.OnClick(tomo.Stop)
container.Adopt(label, true)
container.Adopt(button, false)
container.Adopt(okButton, false)
okButton.Select()
window.OnClose(tomo.Stop)
window.Show()