Python labels 🏷️

Bro Code
Bro Code
34.8 هزار بار بازدید - 4 سال پیش - Python label labels tkinter GUI
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()
4 سال پیش در تاریخ 1399/07/01 منتشر شده است.
34,880 بـار بازدید شده
... بیشتر