def back(): win.destroy() x = welcome.WelcomeWindow() x.add_frame()
def logout(self): #code for logout button messagebox.showinfo("ADMIN", " LOGGED OUT ") self.win.destroy() bk = welcome.WelcomeWindow() bk.add_frame()
def welcome(self): self.win.destroy() wel = welcome.WelcomeWindow() wel.main()
def back(self): #code for back button self.win.destroy() bk = welcome.WelcomeWindow() bk.add_frame()
def main(): app = QtWidgets.QApplication(sys.argv) welcomeWindow = welcome.WelcomeWindow() welcomeWindow.widget.show() sys.exit(app.exec_())