예제 #1
0
 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)
예제 #2
0
 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()
예제 #3
0
 def addViewLogsPanel(self, e):
     client.make_reg_false()
     self.remove(self.currentPanel)
     self.currentPanel = ViewLogsPanel()
     self.add(self.currentPanel, BorderLayout.CENTER)
     self.validate()
예제 #4
0
 def addLoginForm(self, e):
     client.make_reg_false()
     self.remove(self.currentPanel)
     self.currentPanel = LoginForm()
     self.add(self.currentPanel, BorderLayout.CENTER)
     self.validate()
예제 #5
0
 def addEmergencyPanel(self, e):
     client.make_reg_false()
     self.remove(self.currentPanel)
     self.currentPanel = EmergencyBypassForm()
     self.add(self.currentPanel, BorderLayout.CENTER)
     self.validate()
예제 #6
0
 def addDeregisterPanel(self, e):
     client.make_reg_false()
     self.remove(self.currentPanel)
     self.currentPanel = DeregisterForm()
     self.add(self.currentPanel, BorderLayout.CENTER)
     self.validate()