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()
评论列表
文章目录