Answers for "tkinter align method"

1

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
Posted by: Guest on May-31-2021
1

tkinter allign

from Tkinter import *		#      N=North
root = Tk()					#   W=West E=East
							#     S = South
example = Label(root, text="Hello World!")	
example.grid(row=1, column=1, sticky=W)
Posted by: Guest on March-27-2020

Code answers related to "tkinter align method"

Python Answers by Framework

Browse Popular Code Answers by Language