Ejemplo n.º 1
0
 def __setattr__(self, name, value):
     """undefined attributes might be parameters"""
     if name not in SetupPreferences._Parameters:
         KConfigSkeleton.__setattr__(self, name, value)
         return
     par = SetupPreferences._Parameters[name]
     par.item.setValue(value)
Ejemplo n.º 2
0
 def __setattr__(self, name, value):
     """undefined attributes might be parameters"""
     if name not in SetupPreferences._Parameters:
         KConfigSkeleton.__setattr__(self, name, value)
         return
     par = SetupPreferences._Parameters[name]
     par.item.setValue(value)
Ejemplo n.º 3
0
 def __init__(self):
     if common.Preferences:
         logException('Preferences is not None')
     common.Preferences = self
     KConfigSkeleton.__init__(self)
     self.addString('General', 'tilesetName', 'default')
     self.addString('General', 'windTilesetName', 'traditional')
     self.addString('General', 'backgroundName', 'wood_light')
     self.addBool('Display', 'showShadows', True)
     self.addBool('Display', 'rearrangeMelds', False)
     self.addBool('Display', 'showOnlyPossibleActions', True)
     self.addBool('Display', 'propose', True)
     self.addInteger('Display', 'animationSpeed', 70, 0, 99)
     self.addBool('Display', 'useSounds', True)
     self.addBool('Display', 'uploadVoice', False)
Ejemplo n.º 4
0
 def __init__(self):
     if common.Preferences:
         logException('Preferences is not None')
     common.Preferences = self
     KConfigSkeleton.__init__(self)
     self.addString('General', 'tilesetName', 'default')
     self.addString('General', 'windTilesetName', 'traditional')
     self.addString('General', 'backgroundName', 'wood_light')
     self.addBool('Display', 'showShadows', True)
     self.addBool('Display', 'rearrangeMelds', False)
     self.addBool('Display', 'showOnlyPossibleActions', True)
     self.addBool('Display', 'propose', True)
     self.addInteger('Display', 'animationSpeed', 70, 0, 99)
     self.addBool('Display', 'useSounds', True)
     self.addBool('Display', 'uploadVoice', False)
Ejemplo n.º 5
0
 def __init__(self):  # pylint: disable=super-init-not-called
     if Internal.Preferences:
         logException('Preferences is not None')
     self.__watching = defaultdict(list)
     Internal.Preferences = self
     KConfigSkeleton.__init__(self)
     self.configChanged.connect(self.callTriggers)
     self.__oldValues = defaultdict(str)
     self.addString('General', 'tilesetName', 'default')
     self.addString('General', 'windTilesetName', 'traditional')
     self.addString('General', 'backgroundName', 'wood_light')
     self.addBool('Display', 'showShadows', True)
     self.addBool('Display', 'rearrangeMelds', False)
     self.addBool('Display', 'showOnlyPossibleActions', True)
     self.addBool('Display', 'propose', True)
     self.addInteger('Display', 'animationSpeed', 70, 0, 99)
     self.addBool('Display', 'useSounds', True)
     self.addBool('Display', 'uploadVoice', False)
Ejemplo n.º 6
0
 def __init__(self):  # pylint: disable=super-init-not-called
     if Internal.Preferences:
         logException('Preferences is not None')
     self.__watching = defaultdict(list)
     Internal.Preferences = self
     KConfigSkeleton.__init__(self)
     self.configChanged.connect(self.callTriggers)
     self.__oldValues = defaultdict(str)
     self.addString('General', 'tilesetName', 'default')
     self.addString('General', 'windTilesetName', 'traditional')
     self.addString('General', 'backgroundName', 'wood_light')
     self.addBool('Display', 'showShadows', True)
     self.addBool('Display', 'rearrangeMelds', False)
     self.addBool('Display', 'showOnlyPossibleActions', True)
     self.addBool('Display', 'propose', True)
     self.addInteger('Display', 'animationSpeed', 70, 0, 99)
     self.addBool('Display', 'useSounds', True)
     self.addBool('Display', 'uploadVoice', False)