def checkUsername(self): #print(self.usr); checkuser = dbIntiate.dbConnect("user_details", "authenticate") print("here i come") self.output = checkuser.findUser(self.usr, "name") if self.output: if self.output['name'] == self.usr: return "200" else: return "404"
def newname(): newuser = dbIntiate.dbConnect("user_details", "authenticate") exists = newuser.findUser(self.User.get(), "name") if exists: messagebox.showinfo("Error", "User already Exist") else: newuser.insertUser(self.User.get(), self.pwd.get()) destroy() self.loginButton = Button(self.master, text="Log in", command=loginPlace) self.loginButton.place(relx=0.8, anchor=NW) self.submitButton.destroy() self.submitButton = Button(self.master, text="Submit", command=name) self.cancelButton.destroy()
def __init__(self, listTodo, user, date): self.listTodo = listTodo self.dte = date self.usr = user self.save = dbIntiate.dbConnect("ToDo_details", "lists") print(self.listTodo)
def __init__(self, user): self.usr = user self.save = dbIntiate.dbConnect("ToDo_details", "lists") self.output = {}