Beispiel #1
0
    def login(self):
        self.mycursor.execute("select * from login")
        for i in self.mycursor:
            if (self.entry1.get() == i[0] and self.entry2.get() == i[1]):
                self.main_window.destroy()
                sm = smartmart.SmartMart()
                break

        else:
            tkinter.messagebox.showinfo(
                'Invalid username/password',
                'Invalid Username/Password! Please try Again.')
 def clientExit(self):
     self.main_window.destroy()
     smartmart.SmartMart()