Пример #1
0
    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()
Пример #2
0
    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()
Пример #3
0
 def btnClicked(self):
     self.registerWindow = LoginRegister.RegisterWindow()
     self.registerWindow.show()
     self.close()
Пример #4
0
    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()