def connect(self): username = self.entry_account_id.get() password = self.entry_account_password.get() connect = Email(username, password) login_status = connect.login() if login_status is not False: self.GUI_login.destroy() display_navigation(username, password) else: messagebox.showerror( "Could not connect, please try again", "Username or password is invalid.", )
def event_pressed_back(): GUI_send_mail.destroy() import navigation navigation.display_navigation(username, password)
def event_pressed_back(): import navigation GUI_read_mail.destroy() navigation.display_navigation(username, password)