def LoginFunction(self): if self.passtxt.get() == "" or self.usertxt.get() == "": messagebox.showerror("Error", "Fill