I think I found a nicer way to do it. PySimpleGUI is really neat, thank you for your hard work! Cheers jacky