示例#1
0
文件: ui.py 项目: hcit/pyqt
	def preferencesSubmitCallback( self ):
		QHelper.log( '::CONNECT:QPreferencesView:preferencesSubmit' )
		for k, v in self.values().items():
			DBConf.set( k, type( DBConf.get( k ) )( v ) )
		self.hide()
示例#2
0
文件: ui.py 项目: hcit/pyqt
	def logoutActionCallback( self ):
		DBConf.set( 'username', '' )
		DBConf.set( 'passwd', '' )
		self.master.View.login().show()
		self.master.hide()
示例#3
0
文件: ui.py 项目: hcit/pyqt
	def loginSuccessCallback( self ):
		QHelper.log( '::CONNECT:QLoginView:loginSuccess' )
		DBConf.set( 'username', QHelper.getValue( self.fields['username'] ) )
		DBConf.set( 'passwd', QHelper.getValue( self.fields['passwd'] ) )
		self.hide()
		self.status.setText( '' )