You're the first person I know of that's used the Vertical Separator Element. And you used it in a great way. I suppose you could have done it with a Text Element that has | as the value. I just tried that and your solution is superior.
I couldn't figure out what you were doing by looking at the code. For 20 lines of code, it sure does a lot.
I hope PySimpleGUI has been of great help to your project.
For the fun of it, I ran your code using PySimpleGUIQt.
I needed to change:
- The import
- The size of the input element to 3,1
- psg.Txt('|') instead of the vertical serparator
Here's that code:
import PySimpleGUIQt as psg
def DrawBox():
column = [[]]
input1 = []
for i in range(1,10):
for j in range(1,10):
key = str(i)+str(j)
input1.append(psg.InputText(default_text=key,do_not_clear=True, size=(3, 1), key=(key)))
if j%3 == 0 :
input1.append(psg.Txt('|'))
column.append(input1)
input1 = []
if i%3 == 0:
column.append([psg.Text('_' * 50,justification='CENTER')])
layout = [ [psg.Column(column, size=(800,800))],
[psg.OK(), psg.Cancel() ]]
window = psg.Window('Submit Question',auto_size_text=True ).Layout(layout)
while True:
event, value = window.Read()
print(event, value)
if event is None or event == 'Exit' or event == 'Cancel':
break
DrawBox()
And here's what it looks like using my latest release (it may not be available yet on PyPI)

Can wait to see more of your stuff in the future. Nice work.
You're the first person I know of that's used the Vertical Separator Element. And you used it in a great way. I suppose you could have done it with a Text Element that has | as the value. I just tried that and your solution is superior.
I couldn't figure out what you were doing by looking at the code. For 20 lines of code, it sure does a lot.
I hope PySimpleGUI has been of great help to your project.
For the fun of it, I ran your code using PySimpleGUIQt.
I needed to change:
Here's that code:
And here's what it looks like using my latest release (it may not be available yet on PyPI)
Can wait to see more of your stuff in the future. Nice work.