1example = Button(credit, text="example")
2example.place(relx=1.0, rely=1.0, anchor="se")
1import tkinter as tk
2
3# Creating the root window
4root = tk.Tk()
5
6# creating the Label with
7# the text Middle
8Label_middle = tk.Label(root,
9 text ='Middle')
10
11# Placing the Label at
12# the middle of the root window
13# relx and rely should be properly
14# set to position the label on
15# root window
16Label_middle.place(relx = 0.5,
17 rely = 0.5,
18 anchor = 'center')
19
20root.mainloop()