def login_OnClick(self, id, u, p): if id == 10: print('Client') valid = Credentials.passwordHasher(u, p) if valid == 0 or valid == 1: panel = Panels.ClientPanel(self, u) self.pushWinStack(panel) else: msg = wx.MessageBox(valid, 'Login Notice') elif id == 20: print('Admin') valid = Credentials.passwordHasher(u, p) if valid == 0: panel = Panels.AdminPanel(self, u) self.pushWinStack(panel) elif valid == 1: msg = wx.MessageBox("Looks like you aren't an administrator. Contact IT if this is an error", 'Not Authotized') else: msg = wx.MessageBox(valid, 'Login Notice')