(self)
return
Setup default prefs file if any of the keys are not present
Setup default prefs file if any of the keys are not present
Setup default prefs file if any of the keys are not present
def loadprefs(self):
        """Setup default prefs file if any of the keys are not present"""

        defaultprefs = {'textsize':14,
                         'windowwidth': 800 ,'windowheight':600}
        for prop in defaultprefs.keys():
            try:
                self.preferences.get(prop)
            except:
                self.preferences.set(prop, defaultprefs[prop])

        return
def loadprefs ( self ) : defaultprefs = { 'textsize' : 14 , 'windowwidth' : 800 , 'windowheight' : 600 } for prop in defaultprefs . keys ( ) : try : self . preferences . get ( prop ) except : self . preferences . set ( prop , defaultprefs [ prop ] ) return