If I just make a standard TextView
with the Justification
set to Center
, it looks something like this:
If I also want to center the text vertically, as well as horizontally, how do I do this?
If I just make a standard TextView
with the Justification
set to Center
, it looks something like this:
If I also want to center the text vertically, as well as horizontally, how do I do this?
TextViews are normally meant for a large amount of text that the user can edit. As such it may grow too large and have to scroll, hence the difficulty with vertical centering.
If you're only using it to display a message that doesn't have to be edited, you might try Gtk.Label
instead, which you can center vertically.