tkinter label position code example

Example 1: python tkinter lable on bottom of screen

example = Button(credit, text="example")
example.place(relx=1.0, rely=1.0, anchor="se")

Example 2: 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)

Example 3: position label tkinter

import tkinter as tk  
  
# Creating the root window 
root = tk.Tk() 
  
# creating the Label with 
# the text Middle 
Label_middle = tk.Label(root,  
                        text ='Middle') 
  
# Placing the Label at  
# the middle of the root window 
# relx and rely should be properly 
# set to position the label on 
# root window 
Label_middle.place(relx = 0.5,  
                   rely = 0.5, 
                   anchor = 'center') 
  
root.mainloop()