本文整理汇总了Python中interface.Interface.project_suspend方法的典型用法代码示例。如果您正苦于以下问题:Python Interface.project_suspend方法的具体用法?Python Interface.project_suspend怎么用?Python Interface.project_suspend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interface.Interface
的用法示例。
在下文中一共展示了Interface.project_suspend方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: BoincConnectionInterface
# 需要导入模块: from interface import Interface [as 别名]
# 或者: from interface.Interface import project_suspend [as 别名]
#.........这里部分代码省略.........
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'):
self.__bInterface.result_show_graphics(url, name, typ, self.__recvResultShowGraphics)
def __recvResultShowGraphics(self, data):
self.emit(SIGNAL('resultShowGraphicsRecv(PyQt_PyObject)'), data)
def suspendResult(self, url, name):