Given it was older code, were you not able to use an older version of pysimplegui that was freely available?
The problem with old Python code is that you then have to hunt for exactly the right version of the right libraries that can work together when the stars are aligned.
It was written in older version of PySimpleGUI -- it just stopped working! Pretty annoying.