本文整理匯總了Python中control.Control.start_方法的典型用法代碼示例。如果您正苦於以下問題:Python Control.start_方法的具體用法?Python Control.start_怎麽用?Python Control.start_使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類control.Control
的用法示例。
在下文中一共展示了Control.start_方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Main
# 需要導入模塊: from control import Control [as 別名]
# 或者: from control.Control import start_ [as 別名]
#.........這裏部分代碼省略.........
#print self.qq
config = self.__config.get(self.qq)
if not config.get("doLike", 1):
self.doLikeCheckBox.setChecked(False)
self.doCommentCheckBox.stateChanged.connect(self.control.setDoComment)
if not config.get("doComment", 1):
self.doCommentCheckBox.setChecked(False)
self.commentContentPlainTextEdit.textChanged.connect(self.setCommentContent)
commentTextList = config.get("commentContentList", self.control.defaultCommentList)
commentText = "#".join(commentTextList)
self.commentContentPlainTextEdit.setPlainText(QtCore.QString(commentText))
self.setCommentContent()
self.control.start()
if self.isAutoLogin:
self.startClicked()
self.setSoftNameTitile()
def setCommentContent(self):
text = self.commentContentPlainTextEdit.toPlainText()
text = unicode(text.toUtf8(), "utf8")
self.control.setCommentContent(text)
def get_gtk(self,skey):
hash = 5381
for i in range(len(skey)):
hash += (hash << 5) + ord(skey[i])
result = hash & 2147483647
return str(result)
#self.logPlainTextEdit.setPlainText(data)
def startClicked(self):
self.control.start_()
self.addLog(u"動態刷新開始...一旦有新動態將會進行操作,您可以最小化軟件忙別的了~\n")
# self.control.start()
def stopClicked(self):
self.control.stop()
self.addLog(u"軟件已停止!\n")
# self.control.start()
def loginFrameFinished(self):
#print "jhio"
#print self.webFrame.url()
#print self.webFrame.baseUrl()
#print self.webFrame.frameName()
#time.sleep(2)
if self.isAutoLogin:
self.autoLogin()
else:
self.setDefaultQQPwd()
#print self.webFrame.frameName()
#print "finished"
def loadFinished(self):
#print self.webFrame.url().toString()
if self.logined:
return True
#time.sleep(1)
#print self.webFrame.url()
self.webFrame = self.webFrame.childFrames()[0]
self.webFrame.addToJavaScriptWindowObject("python", self.pythonjs)
self.webFrame.evaluateJavaScript(self.baseJs)