Skip to content

Commit 71ad496

Browse files
Update calculator_with_images.py
1 parent 4d2debe commit 71ad496

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Calculator with Images/calculator_with_images.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
rt = Tk()
88
rt.title("Basic Calculator")
99
#Change path of ico file here
10-
rt.iconbitmap('C:/imgs/icons/calc512px.ico') #CHANGE PATH
10+
rt.iconbitmap('C:/imgs/icons/calc512px.ico') #CHANGE PATH INSIDE ''
1111
rt.geometry("300x430")
1212
#change path of Background file here
13-
bg = ImageTk.PhotoImage(file="C:/imgs/300x430_bg.png") #CHANGE PATH
13+
bg = ImageTk.PhotoImage(file="C:/imgs/300x430_bg.png") #CHANGE PATH INSIDE " "
1414
bg_label = Label(rt, image=bg).place(x=0,y=0)
1515

1616
# Entry Widget
@@ -19,6 +19,7 @@
1919
e.grid(row=0,column=0,pady=20,padx=30,columnspan=3)
2020

2121
# CHANGE YOUR PATHS HERE..!!!!!
22+
# Example Img1 = ImageTk.PhotoImage(file="YOUR PATH HERE")
2223

2324
Img1 = ImageTk.PhotoImage(file="C:/Users/irfan/OneDrive/Desktop/MO TECH/pngs50x50/1.png")
2425
Img2 = ImageTk.PhotoImage(file="C:/Users/irfan/OneDrive/Desktop/MO TECH/pngs50x50/2.png")

0 commit comments

Comments
 (0)