Answers for "place a widget in a specific position in tkinter"

0

place a widget in a specific position in tkinter

from tkinter import *
root = Tk()

root.geometry('250x200+250+200')
Label(root, text="Position 1 : x=0, y=0", bg="#FFFF00", fg="white").place(x=5, y=0)
Label(root, text="Position 2 : x=50, y=40", bg="#3300CC", fg="white").place(x=50, y=40)
Label(root, text="Position 3 : x=75, y=80", bg="#FF0099", fg="white").place(x=75, y=80)

root.mainloop()
Posted by: Guest on March-27-2022

Code answers related to "place a widget in a specific position in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language