-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLabels.py
26 lines (22 loc) · 819 Bytes
/
Labels.py
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
from tkinter import *
window = Tk()
window.geometry("640x480")
photo = PhotoImage(file="internet.png")
label = Label(window,
text="Hack The World",
font=("Arial", 40, "bold"),
fg="#FFFFAB",
bg="black",
relief=SUNKEN, # setting a border
# There is also another one called SUNKEN
bd=10, # setting border width
padx=80, # setting padding X
pady=50, # setting padding Y
image=photo, # Adding image for the label
# but right now, just the image will appear not the text
# However, by using the following attribute
# we can let the both to appear together
compound='right'
)
label.pack()
window.mainloop()