def logout(self, e): client.make_reg_false() result = dialog.dispQuestion('Do you want to logout?', 'Logut') if result: client.logout() # dialog.dispInformationMsg('Sucessfully Logout') self.addDefaultPanel(None)
def addAdminPanel(self, e): client.make_reg_false() self.remove(self.currentPanel) self.currentPanel.setVisible(False) self.currentPanel = AddAdminForm() self.currentPanel.setVisible(True) self.add(self.currentPanel, BorderLayout.CENTER) self.validate()
def addViewLogsPanel(self, e): client.make_reg_false() self.remove(self.currentPanel) self.currentPanel = ViewLogsPanel() self.add(self.currentPanel, BorderLayout.CENTER) self.validate()
def addLoginForm(self, e): client.make_reg_false() self.remove(self.currentPanel) self.currentPanel = LoginForm() self.add(self.currentPanel, BorderLayout.CENTER) self.validate()
def addEmergencyPanel(self, e): client.make_reg_false() self.remove(self.currentPanel) self.currentPanel = EmergencyBypassForm() self.add(self.currentPanel, BorderLayout.CENTER) self.validate()
def addDeregisterPanel(self, e): client.make_reg_false() self.remove(self.currentPanel) self.currentPanel = DeregisterForm() self.add(self.currentPanel, BorderLayout.CENTER) self.validate()