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
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
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)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us