Example #1
0
 def login(self):
     lw = loginWindow(self.connection)
     result = lw.exec_()
     if result:
         Matches = lw.checkUser()
         self.currentUserID = Matches[0][0] if len(Matches) > 0 else -1
         if Matches and len(Matches) != 2:
             self.ui.tab_admin.deleteLater()
         return len(Matches)
     else:
         return -1
 def logout(self):
     self.window.destroy()
     application = lw.loginWindow()
import patientWindow as pW
import loginWindow as lw

from tkinter import *

application = lw.loginWindow()
 def passToAdmin(self):
     loginBox = Toplevel(self.master)
     loginBox.grab_set()
     loginBox.title('Login')
     loginWindow(loginBox)