2
0
mirror of https://github.com/rivo/tview.git synced 2024-11-17 03:26:09 +00:00
tview/demos/checkbox/main.go
2018-03-05 16:37:10 +01:00

13 lines
279 B
Go

// Demo code for the Checkbox primitive.
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).Run(); err != nil {
panic(err)
}
}