def submit(self): a=str(self.entry_id.get()) b=str(self.entry_pass.get()) if(a == ""): messagebox.showinfo("MESSAGE","Please Enter ID") elif(b == ""): messagebox.showinfo("MESSAGE","Please Enter Password") else: mycursor.execute("SELECT login_name from login WHERE login_name='%s'"%(a)) x = mycursor.fetchone() n = str(x) m = "('"+a+"',)" if(n!=m): messagebox.showinfo("MESSAGE","ID Doesn't Exist") self.entry_id.delete(0,END) self.entry_pass.delete(0,END) else: mycursor.execute("SELECT password FROM login WHERE login_name= '%s'"%(a)) for i in mycursor: a1=list(i) for i in a1: c=i if(b!=c): messagebox.showinfo("MESSAGE","INCORRECT PASSWORD") self.entry_pass.delete(0,END) else: record_main.main()
def main(): record_main.main()
def back(self): record_main.main() self.root.destroy
def back(self): record_main.main()