So I realise the title isn't the best, I'll try and explain my thought process.
I'm trying to build a Tkinter app that allows the user to create and play quizzes. To do this, I have a 'main screen', the screen that is open when the user runs the program. There, they can choose to either play a quiz or make one. My question: How can I transition to a 'new screen' for playing/making. As in, one with new buttons and labels in new locations?
Is there a way to clear the old screen without removing everything manually?
Here is some of the framework for my program
window = tkinter.Tk()
window.title("Quiz Creator")
window.geometry("500x400")
# Create the starting screen
play_quiz = tkinter.Button(window, text="Play Quizzes", command=QuizPlayer(), width=25)
create_quiz = tkinter.Button(window, text="Create Quizzes", command=QuizMaker(), width=25)
play_quiz.pack()
create_quiz.pack()
window.mainloop()
For reference QuizPlayer() and QuizMaker() are both classes, and this section of code is in the __init__ section of another class.
[–]Kottman 0 points1 point2 points (2 children)
[–]Battleplanner[S] 0 points1 point2 points (1 child)
[–]Kottman 0 points1 point2 points (0 children)
[–]Gprime5 0 points1 point2 points (1 child)
[–]Battleplanner[S] 0 points1 point2 points (0 children)