def confClicked(self): cursor = self.connection.cursor() delete = ('DELETE FROM USERR WHERE username="******";'.format( self.username)) cursor.execute(delete) self.connection.commit() self.loginRegister = LoginRegister.LoginWindow() self.loginRegister.show() self.close() self.connection.close()
def confClicked(self): cursor = self.connection.cursor() payments = ('DELETE FROM PAYMENTS WHERE username="******";'.format(self.username)) user = ('DELETE FROM USERR WHERE username="******";'.format(self.username)) address = ('DELETE FROM ADDRESS WHERE id={};'.format(self.getAddressID())) cursor.execute(payments) cursor.execute(user) cursor.execute(address) self.connection.commit() self.loginRegister = LoginRegister.LoginWindow() self.loginRegister.show() self.close() self.connection.close()
def btnClicked(self): self.registerWindow = LoginRegister.RegisterWindow() self.registerWindow.show() self.close()
def backClicked(self): self.registerWindow = LoginRegister.RegisterWindow() self.registerWindow.show() self.close() self.connection.close()
def confClicked(self): self.loginWin = LoginRegister.LoginWindow() self.loginWin.show() self.close()