-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabel.py
More file actions
31 lines (23 loc) · 643 Bytes
/
label.py
File metadata and controls
31 lines (23 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from tkinter import *
# from PIL import Image
# label = an area widget that holds text and/or an image within a window
def changeImage():
pass
window = Tk()
photo = PhotoImage(file='rick.png')
label = Label(window, text="I'm The Best",
font=('Times New Roman', 40, 'italic'),
fg='green',
bg='grey',
relief=SUNKEN,
bd=10,
padx=20,
pady=20,
image=photo,
# borderwidth=20,
compound='top',
)
label.pack()
# label.place(x=0, y=0)
window.config(background='black')
window.mainloop()