OnCue.py 文件源码

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

项目:OnCue 作者: featherbear 项目源码 文件源码
def __init__(self):
            QtWidgets.QWidget.__init__(self)
            self.setupUi(self)
            self.viewTabs_General.click()  # Set General tab (Index 0) as default

            # Populate monitor dropdowns
            displaysArray = ["%s. %s" % (str(i), states["screens"][i]['name']) for i in states["screens"]]
            self.prefOutputDisplayID.addItems(displaysArray)
            # self.prefStageDisplayID.addItems(displaysArray) # TODO not implemented

            # Set component version info
            self.aboutVersions.setText(
                "\n".join(["%s Version: %s" % (
                    component, states["versions"][component] if states["versions"][component] else "n/a") for component in
                           states["versions"].keys()]))

            # Set custom and last states
            self.customtheme = states["interface"]["theme"]
            self.lastbutton = themes.index(states["interface"]["theme"]) if states["interface"][
                                                                                "theme"] in themes else self.prefTheme.count() - 1
            self.customoutputbackground = states["display"]["outputbackground"]
            self.lastoutputbackground = backgrounds.index(states["display"]["outputbackground"]) if states["display"][
                                                                                                        "outputbackground"] in backgrounds else self.prefOutputBackground.count() - 1
            # TODO not implemented
            # self.customstagebackground = states["display"]["stagebackground"]
            # self.laststagebackground = backgrounds.index(states["display"]["stagebackground"]) if states["display"][
            #                                                                                           "stagebackground"] in backgrounds else self.prefStageBackground.count() - 1

            self.updateSettingInterface()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号