title: Destroying login page window and opening a new one
body: <p>I'm trying to close a window while creating a new one. The following function runs once a login has been entered. Do you have any suggestions on how to close this window while the MenuPage(window) is opened?</p>
  
  <pre><code>from tkinter import *
  
  class LoginPage():
   def __init__(self):
    window = Tk()
  
    #UI to retrieve login details
    #While loop when submit is clicked.
  
    if UserLogins:
  
      #Maybe here a close window function is ran
  
      window = Toplevel()
      start= MenuPage(window)
  
    else:
      print('Incorrect Login')
  
  class MenuPage(object):
  
   #Menu UI
  
  if __name__ == '__main__':
      LoginPage()
  </code></pre>