mainmenu.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:script.matchcenter 作者: enen92 项目源码 文件源码
def onAction(self,action):
        #exit
        if action.getId() == 92 or action.getId() == 10:
            self.close()
        #contextmenu
        if action.getId() == 117:
            identifier = self.getControl(32500).getSelectedItem().getProperty("identifier")
            if identifier == "twitter":
                twitter_history = tweet.get_twitter_history()
                if twitter_history:
                    twitter_history = list(reversed(twitter_history))
                    choice = xbmcgui.Dialog().select(translate(32076), twitter_history)
                    if choice > -1:
                        self.close()
                        tweets.start(twitterhash=twitter_history[choice])
                else:
                    xbmcgui.Dialog().ok(translate(32000),translate(32075))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号