Function to close the window in Tkinter,self.root.destroy()