'python - moving focus to another window

been programming on Access VBA, and now trying Python. In VBA one uses forms(windows) to execute tasks: open a new window and close the previous-main window. On Python, from the main Window (mainloop), I could open a new window, but could not work out how to close the previous-main window, and move the focus to the new window.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source