diff --git a/Problem Statement 1/README.md b/Problem Statement 1/README.md deleted file mode 100644 index 6aaeab6..0000000 --- a/Problem Statement 1/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Problem Statement-1. - - -*** -### Make a desktop assistant using Python as its backend - - - -*** - diff --git a/Problem Statement 2/README.md b/Problem Statement 2/README.md deleted file mode 100644 index baf2489..0000000 --- a/Problem Statement 2/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Problem Statement-2. - - -*** -### Make a Simple Image Editing app - - - -*** - diff --git a/Problem Statement 3/.idea/.gitignore b/Problem Statement 3/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/Problem Statement 3/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/Problem Statement 3/.idea/New folder.iml b/Problem Statement 3/.idea/New folder.iml new file mode 100644 index 0000000..d0876a7 --- /dev/null +++ b/Problem Statement 3/.idea/New folder.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Problem Statement 3/.idea/inspectionProfiles/Project_Default.xml b/Problem Statement 3/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..cff509f --- /dev/null +++ b/Problem Statement 3/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,26 @@ + + + + \ No newline at end of file diff --git a/Problem Statement 3/.idea/inspectionProfiles/profiles_settings.xml b/Problem Statement 3/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/Problem Statement 3/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/Problem Statement 3/.idea/misc.xml b/Problem Statement 3/.idea/misc.xml new file mode 100644 index 0000000..dc9ea49 --- /dev/null +++ b/Problem Statement 3/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Problem Statement 3/.idea/modules.xml b/Problem Statement 3/.idea/modules.xml new file mode 100644 index 0000000..ed380a0 --- /dev/null +++ b/Problem Statement 3/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Problem Statement 3/READMEmy.md b/Problem Statement 3/READMEmy.md new file mode 100644 index 0000000..7d042b0 --- /dev/null +++ b/Problem Statement 3/READMEmy.md @@ -0,0 +1,16 @@ +# Problem statement 3 + +## CALCULATOR WITH GUI in Python + +## Introduction +This project , performs basic mathematical operations. + +## Tech stack + +The project is made using python. + + +## Demonstration video - here is a view of the project : + + + diff --git a/Problem Statement 3/main.py b/Problem Statement 3/main.py new file mode 100644 index 0000000..aae645d --- /dev/null +++ b/Problem Statement 3/main.py @@ -0,0 +1,63 @@ +from tkinter import* + +def btnClick(numbers) : + global operator + operator = operator + str(numbers) + text_Input.set(operator) + +def btnClearDisplay(): + global operator + operator="" + text_Input.set("") +def btnEqualsInput(): + global operator + sumup = str(eval(operator)) + text_Input.set(sumup) + operator="" + +cal = Tk() +cal.title("calculator") +operator="" +text_Input = StringVar() + +txtDisplay = Entry(cal,font=('arial' , 20, 'bold'), textvariable=text_Input, bd=30, insertwidth=4, + bg ="red", justify='right').grid(columnspan=4) + +btn7 =Button(cal, padx=16, pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="7",command=lambda: btnClick(7), + bg="powder blue").grid(row=1,column=0) +btn8 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="8",command=lambda: btnClick(8), + bg="powder blue").grid(row=1,column=1) +btn9 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="9",command=lambda: btnClick(9), + bg="powder blue").grid(row=1,column=2) +Addition =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="+",command=lambda: btnClick("+"), + bg="green").grid(row=1,column=3) +# ===================================================================================================== +btn4 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="4",command=lambda: btnClick(4), + bg="powder blue").grid(row=2,column=0) +btn5 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="5",command=lambda: btnClick(5), + bg="powder blue").grid(row=2,column=1) +btn6 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="6",command=lambda: btnClick(6), + bg="powder blue").grid(row=2,column=2) +subtraction =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="-",command=lambda: btnClick("-"), + bg="green").grid(row=2,column=3) +# ===================================================================================================== +btn1 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="1",command=lambda: btnClick(1), + bg="powder blue").grid(row=3,column=0) +btn2 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="2",command=lambda: btnClick(2), + bg="powder blue").grid(row=3,column=1) +btn3 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="3",command=lambda: btnClick(3), + bg="powder blue").grid(row=3,column=2) +Multiplication =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="*",command=lambda: btnClick("*"), + bg="green").grid(row=3,column=3) +# ===================================================================================================== +btn0 =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="0",command=lambda: btnClick(0), + bg="powder blue").grid(row=4,column=0) +btnClear =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="C",command= btnClearDisplay, + bg="powder blue").grid(row=4,column=1) +btnEquals =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="=",command=btnEqualsInput, + bg="powder blue").grid(row=4,column=2) +Division =Button(cal, padx=16,pady=16, bd=8, fg="black", font=('arial', 20 , 'bold'), text="/",command=lambda: btnClick("/"), + bg="green").grid(row=4,column=3) + + +cal.mainloop() diff --git a/calculator - srinjoy.mp4 b/calculator - srinjoy.mp4 new file mode 100644 index 0000000..9bc6b4d Binary files /dev/null and b/calculator - srinjoy.mp4 differ