예제 #1
0
	def logout(self):
		appInst.curUser = None
		appInst.disableButtons()
		self.mainWindow.changeState('Please login')
예제 #2
0
	def login(self, username, password):
		appInst.setCurUser(username, password)
		self.mainWindow.changeState('Hello, %s! %s' %(username, 
			"You're admin" if appInst.isAdmin() else ''))
		appInst.disableButtons()
		return appInst.curUser