PEATDB/Labbook.py
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])
        print self.preferences.get('textsize')
        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):
        defaultprefs = {'textsize':14,
                         'windowwidth': 800 ,'windowheight':600}
        for prop in defaultprefs.keys():
            try:
                self.preferences.get(prop)
            except:               
                self.preferences.set(prop, defaultprefs[prop])
        print self.preferences.get('textsize')
        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 ] ) print self . preferences . get ( 'textsize' ) 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"""
self