Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to align text in tkinter

Label(root, text='Pack', anchor='w').pack(fill='both')
# anchor='w' ---- w  for left
# anchor='e' ---- e  for right
# anchor='center' ---- center  for center
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #align #text #tkinter
ADD COMMENT
Topic
Name
3+7 =