Exemplo n.º 1
0
 def btnForgotClicked(self):
     if self.txtUsername.text() =="" :
         QtGui.QMessageBox.information(self.lw, 'Message', "Please enter username!")
     else:
         cur = self.conn.cursor()
         cur.execute( "select username from users where username='******';")
         rows = cur.fetchone()
         if rows == None:
             QtGui.QMessageBox.information(self.lw, 'Message', "Account doesn't exists!")
         else:
             self.lw.hide()
             self.window=QtGui.QWidget() 
             self.ui=Ui_SignupWindow()
             self.ui.getUsername(str(self.txtUsername.text()))
             self.ui.setupUi(self.window,1,self.lw)
             self.txtPassword.setText("")
             self.lw.hide()
             self.window.show()
Exemplo n.º 2
0
 def btnSignupClicked(self):
     self.lw.hide()
     self.window = QtGui.QWidget()
     self.ui = Ui_SignupWindow()
     self.ui.setupUi(self.window, 0, self.lw)
     self.window.show()