Ejemplo n.º 1
0
 def __init__(self):
     super().__init__(
         Option.CHECK_FOR_UPDATES,
         title=t("Automatic update check"),
         description=t(
             "When enabled, check for software updates on every startup."
         ),
     )
Ejemplo n.º 2
0
 def __init__(self, parent):
     super().__init__(parent)
     # FIXME
     self.set_min_size((540, 0))
     with VerticalFlexContainer(self, style={"padding": 10}):
         PrefsControl(
             # FIXME: Option.NETWORK_ACCCESS?
             Option.OFFLINE_MODE,
             title=t("Allow network access"),
             description=t(
                 "When disabled, do not try to do anything over network "
                 "including version checks, automatic downloads, etc. "),
         ).disable()
         Text(
             "FIXME: Off-line mode is not fully implemented yet!",
             style={"margin": 10},
         )
         PrefsDivider()
         AutomaticVersionCheck()
         PrefsDivider()
         PrefsControl(
             Option.AUTOMATIC_ERROR_REPORTING,
             title=t("Automatic error reporting"),
             description=t(
                 "When enabled, automatically send error reports to the "
                 "developer when exceptions occur. It is off by default "
                 "to respect your privacy, but please consider enabling it "
                 "to help the developer detect and fix bugs."),
         )
         PrefsDivider()
         PrefsControl(
             Option.AUTOMATIC_ERROR_REPORTING_INCLUDE_USER_ID,
             title=t("Include user ID in error reports"),
             description=t(
                 "When enabled, include your OpenRetro.org user ID (when "
                 "logged in) in error reports to help group together "
                 "related errors from you."),
         )
         with FlexContainer(style={"padding": 10}):
             DefaultPrefsButton()
Ejemplo n.º 3
0
 def __init__(self, parent=None):
     super().__init__(parent, title=t("Storage preferences"))
     self.panel = StoragePrefsPanel(self)
     self.layout.add(self.panel, fill=True, expand=True)
Ejemplo n.º 4
0
 def __init__(self):
     super().__init__(t("Privacy preferences"), PrivacyPrefsPanel)
Ejemplo n.º 5
0
 def __init__(self):
     super().__init__(t("Update preferences"), UpdatePrefsPanel)