-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiply_generator.py
27 lines (19 loc) · 1018 Bytes
/
Multiply_generator.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
27
import sys
from tkinter import *
def TimesTable():
print("\n")
for x in range(1, 13):
m = int(EnterTable.get())
print('t\t', (x), ' x ', (m), '=', (x * m))
Multiply = Tk()
Multiply.geometry('250x250+700+200')
Multiply.title('Multiplication Table')
EnterTable = StringVar()
label1 = Label(Multiply, text='Multiplication TimeTable', font=30, fg='Black').grid(row=1, column=6)
label1 = Label(Multiply, text=' ').grid(row=2, column=6)
entry5 = Entry(Multiply, textvariable=EnterTable, justify='center').grid(row=3, column=6)
label1 = Label(Multiply, text=' ').grid(row=4, column=6)
button1 = Button(Multiply, text='Times Table', command=TimesTable).grid(row=5, column=6)
label1 = Label(Multiply, text=' ').grid(row=6, column=6)
QUIT = Button(Multiply, text='Quit', fg='Red', command=Multiply.destroy).grid(row=7, column=6)
Multiply.mainloop()