You can choose whether or not you want text to wrap

This commit is contained in:
2023-01-10 21:01:30 -05:00
parent a79f2eaf64
commit 3ddeeb5469
4 changed files with 56 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ func main () {
func run () {
window, _ := tomo.NewWindow(480, 360)
window.SetTitle("example label")
window.Adopt(basic.NewLabel(text))
window.Adopt(basic.NewLabel(text, true))
window.OnClose(tomo.Stop)
window.Show()
}