I want user to input matrix in tkinter GUI. When the user press "submit" then it should display the matrix entered. I know how to input matrix in normal way but don't know how to do in "tkinter". Just tell me how to define matrix in tkinter, what to write in place of "textvariable" in Entry.
Here is my code :
from tkinter import *
window = Tk()
window.title("Matrix")
window.geometry("650x500+120+120")
window.configure(bg='bisque2')
window.resizable(False, False)
m1 = StringVar()
Label(window, text="Enter matrix :", font=('arial', 10, 'bold'),
bg="bisque2").place(x=20, y=20)
x2 = 0
y2 = 0
rows, cols = (3,3)
for i in range(rows):
for j in range(cols):
entry = Entry(window, textvariable = ,width=3)
entry.place(x=60 + x2, y=50 + y2)
x2 += 30
y2 += 30
x2 = 0
button= Button(window,text="Submit", bg='bisque3', width=15)
button.place(x=160,y=140)
window.mainloop()