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


Python Interface.project_update方法代码示例

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


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

示例1: BoincConnectionInterface

# 需要导入模块: from interface import Interface [as 别名]
# 或者: from interface.Interface import project_update [as 别名]

#.........这里部分代码省略.........
			try:
				i = proj[u'suspended_via_gui']
				proj[u'suspended_via_gui'] = 1
			except KeyError:
				proj[u'suspended_via_gui'] = 0

			try:
				i = proj[u'dont_request_more_work']
				proj[u'dont_request_more_work'] = 1
			except KeyError:
				proj[u'dont_request_more_work'] = 0

			self.__projects[proj[u'master_url']] = proj
		self.emit(SIGNAL("projectState(PyQt_PyObject)"), st)

	def getState(self):
		self.__bInterface.get_state(self.__updateProjectState)


	def getStatistics(self):
		self.__bInterface.get_statistics(self.__recvStatistics)

	def __recvStatistics(self, data):
		self.emit(SIGNAL("getStatisticsRecv(PyQt_PyObject)"), data)

	def getFileTransfers(self):
		self.__bInterface.get_file_transfers(self.__recvFileTransfers)

	def __recvFileTransfers(self, data):
		self.emit(SIGNAL("getFileTransfersRecv(PyQt_PyObject)"), data)

	# jednoduche akcie s projektom
	def projectUpdate(self, url):
		self.__bInterface.project_update(url, self.__recvProjectUpdate)

	def __recvProjectUpdate(self, data):
		self.emit(SIGNAL('projectUpdateRecv(PyQt_PyObject)'), data)

	def projectSuspend(self, url):
		self.__bInterface.project_suspend(url, self.__recvProjectSuspend)

	def __recvProjectSuspend(self, data):
		self.emit(SIGNAL('projectSuspendRecv(PyQt_PyObject)'), data)

	def projectResume(self, url):
		self.__bInterface.project_resume(url, self.__recvProjectResume)

	def __recvProjectResume(self, data):
		self.emit(SIGNAL('projectResumeRecv(PyQt_PyObject)'), data)

	def projectNomorework(self, url):
		self.__bInterface.project_nomorework(url, self.__recvProjectNomorework)

	def __recvProjectNomorework(self, data):
		self.emit(SIGNAL('projectNomoreworkRecv(PyQt_PyObject)'), data)

	def projectAllowmorework(self, url):
		self.__bInterface.project_allowmorework(url, self.__recvProjectAllowmorework)

	def __recvProjectAllowmorework(self, data):
		self.emit(SIGNAL('projectAllowmoreworkRecv(PyQt_PyObject)'), data)

	# praca s workunitom

	# zobrazenie grafiky
	def resultShowGraphics(self, url, name, typ = 'window'):
开发者ID:mireq,项目名称:pyboincgui,代码行数:70,代码来源:connectionmanager.py


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