I’m working on a python application using tkinter and after much time searching and trying to figure out what everything does, I’ve got a start to a program that works great. Until I add a command. The issue is once I add a command to withdraw the active window and reveal another, the window is covered with a whole bunch of black.
The code in question is this button and function.
playButton = tk.Button(mainFrame, text = "Play", width = 10, command = openWindow(mainWindow,playWindow))
def openWindow(currentWindow,newWindow):
currentWindow.withdraw()
newWindow.deiconify()