I am building a little script to make faster word documents. With the help of docxtpl and pysimplegui
Now I want to create a table to fill in data.
My table layout looks like this:
headings = ['test1', 'test2', 'test3','test4','Result']
header = [[sg.Text(' ')] + [sg.Text(h, size=(12)) for h in headings]]
input_rows = [[sg.Input(size=(10,1), pad=(20,0)) for col in range(5)] for row in range(4)]
But can't find the right way to use sg.Input with a key reference like in a normal input data field :
[sg.Text("Year:", (10, None)), sg.Input("",size=(10,1), key="YEAR", do_not_clear=False)],
How can I use this in my table?
Thanks in advance!
Kind regards

maybe using a key pattern? Something like this:
So that it combines the row and column numbers to make each key unique.