-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclass 9.py
More file actions
53 lines (40 loc) · 1.02 KB
/
class 9.py
File metadata and controls
53 lines (40 loc) · 1.02 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from tkinter import *
def hello():
print("Hello World")
def sum():
a = int(input())
b = int(input())
print(a+b)
def sub():
a = int(input())
b = int(input())
print(a-b)
def mul():
while True:
a = int(input())
b = int(input())
print(a*b)
def div():
while True:
a = int(input())
b = int(input())
print(a/b)
root=Tk()
root.title("My Software")
root.geometry("540x360")
root.maxsize(1080,720)
Title=Label(text="WELCOME TO MY SOFTWARE", fg="dodgerblue", font= "arial 15 bold",pady=15)
Title.pack()
F1=Frame( pady=10, borderwidth=10, relief=SUNKEN)
F1.pack(side=LEFT, fill=Y)
B1=Button(F1, text="CLICK HERE",padx=10, pady=15, command=hello)
B1.pack()
B2=Button(F1, text="SUM OF NO.",padx=10, pady=15, command=sum)
B2.pack()
B3=Button(F1, text="SUB OF NO.",padx=10, pady=15, command=sub)
B3.pack()
B4=Button(F1, text="MUL OF NO.",padx=10, pady=15, command=mul)
B4.pack()
B5=Button(F1, text="DIV OF NO.",padx=10, pady=15, command=div)
B5.pack()
root.mainloop()