How to update variable in pysimplegui?

Proper use of global does that, because the SO that is “OUTSIDE that sel function” that you want to assign to is a global variable. There simply isn’t anything else to it. If it isn’t working for you, there is something else that needs to be diagnosed. That is why I am lobbing all these other suggestions at you.

1 Like