PluginTimeTracker.py

changeset 15
645506ab3376
parent 7
6c769e2cc920
child 18
73bd1fdd7102
equal deleted inserted replaced
14:25f7323b308d 15:645506ab3376
188 def getPreferences(self, key): 188 def getPreferences(self, key):
189 """ 189 """
190 Public method to retrieve the various settings. 190 Public method to retrieve the various settings.
191 191
192 @param key the key of the value to get 192 @param key the key of the value to get
193 @param prefClass preferences class used as the storage area
194 @return the requested setting 193 @return the requested setting
195 """ 194 """
196 if key in ["MinimumDuration"]: 195 if key in ["MinimumDuration"]:
197 return int(Preferences.Prefs.settings.value("TimeTracker/" + key, 196 return int(Preferences.Prefs.settings.value("TimeTracker/" + key,
198 self.__defaults[key])) 197 self.__defaults[key]))

eric ide

mercurial