-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
30 lines (23 loc) · 698 Bytes
/
Copy pathmain.py
File metadata and controls
30 lines (23 loc) · 698 Bytes
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
import tkinter as tk
import matrixInput
def main():
windowFirst= tk.Tk()
windowFirst.geometry('400x200')
def callMatrixInput():
m=int(entryM.get())
n=int(entryN.get())
windowFirst.destroy()
matrixInput.inputMatrix(m,n)
label1=tk.Label(windowFirst,text="enter dimension",pady=2,padx=0)
entryM=tk.Entry(windowFirst,text='m')
labelX=tk.Label(windowFirst,text='x')
entryN=tk.Entry(windowFirst,text='n')
buttonGo=tk.Button(windowFirst,text='go',command=callMatrixInput)
label1.pack()
entryM.pack()
labelX.pack()
entryN.pack()
buttonGo.pack()
windowFirst.mainloop()
if __name__=='__main__':
main()