Keynav moment
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user