当前位置: 首页>>代码示例>>Python>>正文


Python QHelper.master方法代码示例

本文整理汇总了Python中helper.QHelper.master方法的典型用法代码示例。如果您正苦于以下问题:Python QHelper.master方法的具体用法?Python QHelper.master怎么用?Python QHelper.master使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在helper.QHelper的用法示例。


在下文中一共展示了QHelper.master方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def __init__( self, parent ):
		super( self.__class__, self ).__init__( parent )
		self.textCursor = QtGui.QTextCursor( self.document() )
		self.setReadOnly( 1 )
		self.project = None
		self.connect( QHelper.master(), QtCore.SIGNAL( 'pickedProject' ), self.pickedProjectCallback )
		self.connect( QHelper.master(), QtCore.SIGNAL( 'projectData' ), self.projectDataCallback )
开发者ID:hcit,项目名称:pyqt,代码行数:9,代码来源:ui.py

示例2: keyPressEvent

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def keyPressEvent( self, event ):
		if event.key() == QtCore.Qt.Key_Shift:
			self.__sendMessageOnReturn = False
		elif event.key() == QtCore.Qt.Key_Return:
			if self.__sendMessageOnReturn:
				if len( self.toPlainText() ):
					QHelper.master().emit( QtCore.SIGNAL( 'sendMessage' ), self.contact, self.toPlainText() )
					return
		QtGui.QTextEdit.keyPressEvent( self, event )
开发者ID:hcit,项目名称:pyqt,代码行数:11,代码来源:ui.py

示例3: reportSubmitCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def reportSubmitCallback( self ):
		QHelper.log( '::CONNECT:QReportView:reportSubmit' )
		data = self.values()
		reportData = 'report %sh %sm on %s %s' % (
			QHelper.str( data.get( 'h', '0' ) ),
			QHelper.str( data.get( 'm', '0' ) ),
			QHelper.str( data.get( 'project', '' ) ),
			QHelper.str( data.get( 'summary', '' ) ),
		)
		print '::REPORT:MESSAGE', reportData
		QHelper.master().emit( QtCore.SIGNAL( 'transportSignal' ), 'sendMessage', DBConf.get( 'bot' ), reportData )
		self.hide()
开发者ID:hcit,项目名称:pyqt,代码行数:14,代码来源:ui.py

示例4: SIGNALCBloginSuccessCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def SIGNALCBloginSuccessCallback( self ):
		QHelper.log( '::CONNECT:master:loginSuccess' )
		self.master.show()
		self.master.View.contact().show()
		self.master.View.chat().hide()
		QHelper.master().emit( QtCore.SIGNAL( 'transportSignal' ), 'sendMessage', DBConf.get( 'bot' ), 'online' )
开发者ID:hcit,项目名称:pyqt,代码行数:8,代码来源:ui.py

示例5: SIGNALCBsendMessageCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def SIGNALCBsendMessageCallback( self, contact, message ):
		QHelper.log( '::CONNECT:master:sendMessage', contact, message )
		QHelper.master().emit( QtCore.SIGNAL( 'transportSignal' ), 'sendMessage', contact, message.replace( '<br />', '\n' ).replace( '<br/>', '\n' ).replace( '<br>', '\n' ) )
开发者ID:hcit,项目名称:pyqt,代码行数:5,代码来源:ui.py

示例6: projectsActionCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def projectsActionCallback( self ):
		self.master.View.projects().show()
		QHelper.master().emit( QtCore.SIGNAL( 'dbSignal' ), 'doc', {'type':'project', 'emit':'projectList'} )
开发者ID:hcit,项目名称:pyqt,代码行数:5,代码来源:ui.py

示例7: preferencesCancelCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def preferencesCancelCallback( self ):
		QHelper.log( '::CONNECT:QLoginView:preferencesCancel' )
		if not QHelper.master().isVisible() and not self.isVisible():
			self.show()
开发者ID:hcit,项目名称:pyqt,代码行数:6,代码来源:ui.py

示例8: loginSubmitCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def loginSubmitCallback( self, username, passwd ):
		QHelper.log( '::CONNECT:QLoginView:loginSubmit', username, passwd )
		self.status.setStyleSheet( 'QLabel { color : gray; }' )
		self.status.setText( '...authentication' )
		QHelper.master().emit( QtCore.SIGNAL( 'transportSignal' ), '_connect', username, passwd, {'server':DBConf.get('server'),'port':DBConf.get('port'),'nickname':DBConf.get('username').split('.')[0].title()} )
开发者ID:hcit,项目名称:pyqt,代码行数:7,代码来源:ui.py

示例9: SIGNALCBpickedProjectCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def SIGNALCBpickedProjectCallback( self, project ):
		QHelper.log( '::CONNECT:master:pickedProject', project )
		QHelper.master().emit( QtCore.SIGNAL( 'dbSignal' ), 'doc', {'type':'project', 'id':project, 'emit':'projectData'} )
开发者ID:hcit,项目名称:pyqt,代码行数:5,代码来源:ui.py

示例10: mousePressEvent

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def mousePressEvent( self, event ):
		QHelper.master().emit( QtCore.SIGNAL( 'clickedContact' ), self.name )
开发者ID:hcit,项目名称:pyqt,代码行数:4,代码来源:ui.py

示例11: reportActionCallback

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def reportActionCallback( self ):
		self.master.View.report().show()
		#QHelper.master().emit( QtCore.SIGNAL( 'transportSignal' ), 'query' )
		QHelper.master().emit( QtCore.SIGNAL( 'dbSignal' ), 'doc', {'type':'project', 'emit':'projectList'} )
开发者ID:hcit,项目名称:pyqt,代码行数:6,代码来源:ui.py

示例12: mouseDoubleClickEvent

# 需要导入模块: from helper import QHelper [as 别名]
# 或者: from helper.QHelper import master [as 别名]
	def mouseDoubleClickEvent( self, event ):
		QHelper.master().emit( QtCore.SIGNAL( 'pickedContact' ), self.name )
开发者ID:hcit,项目名称:pyqt,代码行数:4,代码来源:ui.py


注:本文中的helper.QHelper.master方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。