Exemplo n.º 1
0
Arquivo: main.py Projeto: zarthon/sam
	def logout (self):
		try:
			Cyberoam.logout (self.username, self.passwd)
			self.setText (1, 'Logged out')
			self.thread.emit (SIGNAL('setIcon(QString)'), YELLOW)
			self.thread.emit (SIGNAL('loggedOut()'))
		except IOError:
			self.thread.emit (SIGNAL('networkError()'))
			#self.setText (1, 'Network Error')
			self.thread.emit (SIGNAL('setIcon(QString)'), RED)