Beispiel #1
0
    def init(self):
        """
        """
        self.logger: Logger = getLogger(__name__)

        self._overrideProgramExitSize: bool = False
        self._overrideProgramExitPosition: bool = False
        """
        Set to `True` by the preferences dialog when the end-user either manually specifies
        the size or position of the Pyut application.  If it is False, then normal end
        of application logic prevails;
        """
        self._config: ConfigParser = cast(
            ConfigParser, None)  # initialized when empty preferences created

        self._preferencesCommon: PreferencesCommon = PreferencesCommon()
        self._mainPrefs: MainPreferences = MainPreferences()
        self._diagramPrefs: BackgroundPreferences = BackgroundPreferences()
        self._valuePrefs: ValuePreferences = ValuePreferences()
        self._miscellaneousPrefs: MiscellaneousPreferences = MiscellaneousPreferences(
        )
        self._debugPrefs: DebugPreferences = DebugPreferences()

        self._createEmptyPreferences()

        self.__loadConfig()
Beispiel #2
0
    def init(self, *args, **kwds):

        self.logger: Logger = getLogger(__name__)

        BaseSubPreference.init(self, *args, **kwds)

        self._preferencesCommon: PreferencesCommon = PreferencesCommon(
            self._config)
Beispiel #3
0
 def getPreferencesLocation():
     return PreferencesCommon.getPreferencesLocation()
Beispiel #4
0
 def determinePreferencesLocation():
     """
     This method MUST (I repeat MUST) be called before attempting to instantiate the preferences Singleton
     """
     PreferencesCommon.determinePreferencesLocation()