-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path68_Labels.py
More file actions
36 lines (31 loc) · 990 Bytes
/
68_Labels.py
File metadata and controls
36 lines (31 loc) · 990 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
32
33
34
35
36
from tkinter import *
# label = an area widget that holds text and/or and image within a window
window = Tk()
photo = PhotoImage(file='69.5_Image.png')
# label = Label(window,text="Hello World",font=('Arial',40,'bold'),fg='green') # fg means foreground or font color
# label = Label(window,
# text="Hello",
# font=('Arial',40,'bold'),
# fg='#00FF00',
# bg='black',
# relief=RAISED,
# bd=10,
# padx=20,
# pady=20,
# image=photo,
# compound='bottom')
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)
#label.place(x=100,y=100)
window.mainloop()