'How can i create a matrix from user's input in dialog box using tkinter

I have a 19x5 matrix that's by default only zeros. I want to create a window using tkinter that displays an empty 19x5 matrix that the user will fill with values (positive real) or leave blank. In that case i want blank inputs to remain zero and input values to replace the zeros in the respective place and the new matrix is saved.

import numpy as np
import PySimpleGUI as sg
from tkinter import *

demand = np.zeros((19,5))


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source