-2

Everything here works just fine but I haven't found a way to make it so that when I press the start button it withdraws the Main Menu screen and displays the next one. It already creates the second screen when I run the code and it withdraws the MainMenu Screen before I even click the start button.

https://replit.com/@AbdullahKaran/ConfusedSophisticatedFolders#main.py

acw1668
  • 40,144
  • 5
  • 22
  • 34
  • 2
    Please don't link to code on another site. Paste and format the code directly in your question. – Bryan Oakley Jun 03 '23 at 05:07
  • 1
    Used `tk.tk()` for entire script. This should be inside `click` function and replace the `ChapterOne1stScreen =tk.Tk()` with `ChapterOne1stScreen =tk.Toplevell()`. – toyota Supra Jun 03 '23 at 11:53

1 Answers1

0

Now, you can do this by using the tkraise() method of the Frame widget. To learn more, please visit this website: https://www.pythontutorial.net/tkinter/tkraise/

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Shivam Pandey
  • 83
  • 2
  • 8