search
[last updated: 2025-11-15]
GUIzero home page
-----
Text font color:
tmpText = Text(mainW, ..., text="sometext", color="red")
Changing it later:
tmpText.text_color = "white"
Text font weight:
Still struggling with this one. Best guess is that you must change the font declaration itself.
But here's what I tried that did NOT work with my version...
text01 = Text(parent, text="some text", font_weight="bold")
text01 = Text(parent, text="some text", bold=True)
text01.bold = True
text01.font_weight = "bold"
text01.font_weight = "strong"