def infortbox(self):
text=self.UrlFile.text()
self.box=QtGui.QMessageBox(self)
self.box.setText(u'当前网页中非法{0},状态返回为{1},请检查后'.format(text,u'找不到'))
self.box.setWindowTitle(u'错误提示')
yes=self.box.addButton('Yes',QtGui.QMessageBox.ActionRole)
no=self.box.addButton('No',QtGui.QMessageBox.ActionRole)
self.box.exec_()
button=self.box.clickedButton()
if button==yes:
self.box.move(0,0)
for i in range(500000):
self.box.move(0,100)
for i in range(500000):
self.box.move(100,0)
for i in range(500000):
self.box.move(0,0)
self.UrlFile.clear()
if self.move01==0:
self.move01=1
elif self.move01==1:
self.move01=0
elif button==no:
pass
QtCore.QTextCodec.setCodecForTr(QtCore.QTextCodec.codecForName("utf8"))
QtCore.QTextCodec.setCodecForTr(QtCore.QTextCodec.codecForName("system"))
QtCore.QTextCodec.setCodecForCStrings(QtCore.QTextCodec.codecForName("system"))
QtCore.QTextCodec.setCodecForLocale(QtCore.QTextCodec.codecForName("system"))
阅读(1423) | 评论(0) | 转发(0) |