mirror of
https://github.com/rivo/tview.git
synced 2024-11-19 03:25:34 +00:00
12 lines
257 B
Go
12 lines
257 B
Go
package main
|
|
|
|
import "github.com/rivo/tview"
|
|
|
|
func main() {
|
|
app := tview.NewApplication()
|
|
checkbox := tview.NewCheckbox().SetLabel("Hit Enter to check box: ")
|
|
if err := app.SetRoot(checkbox, true).SetFocus(checkbox).Run(); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|