There is a main window and you need to call its parent, while the main thing is to hide it. Then after some time, close the child and show the parent.
Now create it
Class constructor
self.root = Tk() self.main = MainWindow(self.root) self.main.StartServerEvent+=self.OnServerStart self.root.mainloop()
Then when the event fires.
self.root.destroy() self.root.quit() self.root = Tk() self.gameWindow = Game(self.root, self.server) self.root.mainloop()
Up to this point it works, but now how to restore the first window?