def onControl(self, event):
if event == self.buttonInput:
self.close()
elif event == self.buttonRefresh:
(self.codeString, self.vcode_path) = auth.refresh_vcode(self.cookie, self.tokens, self.vcodetype)
if self.codeString and self.vcode_path:
self.removeControl(self.image)
self.image = xbmcgui.ControlImage(80, 100, 500, 200, self.vcode_path)
self.addControl(self.image)
else:
dialog.ok('Error', u'???????????')
# Authorisation Process
评论列表
文章目录