Learn Python tkinter labels easy

14 Views
Published
Python label labels tkinter GUI code example tutorial for beginners

#Python #label #labels #tkinter #GUI #code #example #tutorial for #beginners

from tkinter import *

# label = an area widget that holds text and/or an image within a window

window = Tk()

photo = PhotoImage(file='person.png')

label = Label(window,
text="bro, do you even code?",
font=('Arial',40,'bold'),
fg='#00FF00',
bg='black',
relief=RAISED,
bd=10,
padx=20,
pady=20,
image=photo,
compound='bottom')
label.pack()
#label.place(x=0,y=0)

window.mainloop()
Category
Bro Code
Tags
Python label, Python labels, tkinter label
Be the first to comment