I have put a solution (PySimpleGUI: Working with Multiple Windows - Mouse Vs Python) into a program to make a save function, but everytime I tried to use an input for a value into said program, it returns a “Key Error” error. I print the values, but found no value relating to the input. Here’s the example code; run the program and click on the “print” key if you don’t believe me.
This reads the values from the first window. But values["V2"] is from the second window. You should assign the second window to another variable and read the values from that again before you can print them.
Before only the event of the second window was used (without assigning it to a variable). Now both the event and the values are assigned to variables. So when you later use the values variable, they contain the data from this second window.