本文整理汇总了Python中interface.Interface.resume_result方法的典型用法代码示例。如果您正苦于以下问题:Python Interface.resume_result方法的具体用法?Python Interface.resume_result怎么用?Python Interface.resume_result使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类interface.Interface
的用法示例。
在下文中一共展示了Interface.resume_result方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: BoincConnectionInterface
# 需要导入模块: from interface import Interface [as 别名]
# 或者: from interface.Interface import resume_result [as 别名]
#.........这里部分代码省略.........
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):
self.__bInterface.suspend_result(url, name, self.__recvSuspendResult)
def __recvSuspendResult(self, data):
self.emit(SIGNAL('suspendResultRecv(PyQt_PyObject)'), data)
def resumeResult(self, url, name):
self.__bInterface.resume_result(url, name, self.__recvResumeResult)
def __recvResumeResult(self, data):
self.emit(SIGNAL('resumeResultRecv(PyQt_PyObject)'), data)
def abortResult(self, url, name):
self.__bInterface.abort_result(url, name, self.__recvAbortResult)
def __recvAbortResult(self, data):
self.emit(SIGNAL('abortResultRecv(PyQt_PyObject)'), data)
def boincConnect(self):
self.__bInterface.boincConnect(self.__connectStateChanged)
def __connectStateChanged(self, state):
if self.__connected != state:
self.__connected = state
self.emit(SIGNAL('connectStateChanged(int)'), state)
def boincDisconnect(self):
if not self.__updateTimer is None:
self.__updateTimer.stop()
self.__updateTimer = None
self.__bInterface.disconnect()
self.__bInterface = None
def local(self):
return self.__local
def path(self):
return self.__path
def host(self):
return self.__host
def port(self):
return self.__port
def password(self):
return self.__password
def connected(self):
return self.__connected
def bInterface(self):
return self.__bInterface