示例#1
0
文件: Settings.py 项目: einaru/luma
    def __init__(self):
        """ The Settings constructor initializes the default settings
        values, which is provided as a fallback, should the config file
        somehow go missing. We use the ``qApp`` instance of The running
        ``QApplication`` to register organization and application name,
        as well as the application version.
        """
        QSettings.__init__(self)

        # This is the path prefix where we store all luma related
        # files (serverlist, templates, filter bookmarks etc.)
        self.__configPrefix = ''

        # Defaults for section: mainwindow
        self.__maximize = False
        self.__size = QSize(750, 500)
        screen = QDesktopWidget().screenGeometry()
        self.__position = QPoint((screen.width() - self.__size.width()) / 2,
                                 (screen.height() - self.__size.height()) / 2)
        # Defaults for section: i18n
        self.__language = u'en'
        # Defaults for section: logger
        self.__showLoggerOnStart = False
        self.__showLogger = False
        self.__showErrors = True
        self.__showDebug = True
        self.__showInfo = True
示例#2
0
    def __init__(self):
        """ Initializer.

        """
        format = self.IniFormat if isWin else self.NativeFormat
        scope = self.UserScope
        QSettings.__init__(self, format, scope, self.keys.org, self.keys.app)
示例#3
0
    def __init__(self):
        """ The Settings constructor initializes the default settings
        values, which is provided as a fallback, should the config file
        somehow go missing. We use the ``qApp`` instance of The running
        ``QApplication`` to register organization and application name,
        as well as the application version.
        """
        QSettings.__init__(self)

        # This is the path prefix where we store all luma related
        # files (serverlist, templates, filter bookmarks etc.)
        self.__configPrefix = ''

        # Defaults for section: mainwindow
        self.__maximize = False
        self.__size = QSize(750, 500)
        screen = QDesktopWidget().screenGeometry()
        self.__position = QPoint((screen.width() - self.__size.width()) / 2,
                                 (screen.height() - self.__size.height()) / 2)
        # Defaults for section: i18n
        self.__language = u'en'
        # Defaults for section: logger
        self.__showLoggerOnStart = False
        self.__showLogger = False
        self.__showErrors = True
        self.__showDebug = True
        self.__showInfo = True
示例#4
0
 def __init__(self):
     QSettings.__init__(self,QSettings.IniFormat,QSettings.UserScope,"OpenAlea","PlantScan3D")
示例#5
0
 def __init__(self):
     QSettings.__init__(self, QSettings.IniFormat, QSettings.UserScope,
                        "OpenAlea", "PlantScan3D")
	def __init__(self, configFile, parent=None):
		QSettings.__init__(self, configFile, QSettings.IniFormat, parent)
示例#7
0
 def __init__(self, app_name, parent = None):
     QSettings.__init__(self, QSettings.IniFormat, QSettings.UserScope, "INL", app_name, parent)
示例#8
0
    def __init__(self):
        QSettings.__init__(self)

        if os.environ.get('__GEN_DOCS__', None) == None:
            self.initialize()
示例#9
0
    def __init__(self):
        """ Initializer.

        """
        QSettings.__init__(self, self.keys.org, self.keys.app)
示例#10
0
 def __init__( self ):
     QSettings.__init__( self )
     
     if os.environ.get('__GEN_DOCS__', None) == None:
         self.initialize()