DNATool2/DNAToolApp.py
def loadPrefs(self):
        """Load prefs from a preferences instance"""
        self.preferences = Preferences('DNATool2',{})
        temp = {}
        for key in self.defaultprefs:
            if not key in self.preferences.prefs:
                self.preferences.set(key, self.defaultprefs[key])
            temp[key] = self.preferences.get(key)
        self.applyPrefs(temp)
        return
Load prefs from a preferences instance
Load prefs from a preferences instance
Load prefs from a preferences instance
def loadPrefs(self):
        self.preferences = Preferences('DNATool2',{})
        temp = {}
        for key in self.defaultprefs:
            if not key in self.preferences.prefs:
                self.preferences.set(key, self.defaultprefs[key])
            temp[key] = self.preferences.get(key)
        self.applyPrefs(temp)
        return
def loadPrefs ( self ) : self . preferences = Preferences ( 'DNATool2' , { } ) temp = { } for key in self . defaultprefs : if not key in self . preferences . prefs : self . preferences . set ( key , self . defaultprefs [ key ] ) temp [ key ] = self . preferences . get ( key ) self . applyPrefs ( temp ) return
Load prefs from a preferences instance
Load prefs from a preferences instance
"""Load prefs from a preferences instance"""
self