Why wont the tecxt alighn ughghghgh

This commit is contained in:
Sasha Koshka 2023-04-04 13:44:38 -04:00
parent f377372354
commit d633e0f5f6
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import "fmt"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/layouts"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "git.tebibyte.media/sashakoshka/tomo/elements/containers"
import _ "git.tebibyte.media/sashakoshka/tomo/backends/all"
@ -26,6 +27,7 @@ func run () {
label := elements.NewLabel (
fmt.Sprintf("%d, %d", row, column),
false)
label.SetAlign(textdraw.AlignCenter)
table.Set(row, column, label)
}
index ++