PEATDB/Ekin/Ekin_prefs.py
def load_preferences(self):
        """Loads the sequence display settings from prefs file, if present"""
        from PEATDB.Prefs import Preferences
        print 'Loading current Ekin preferences'
        self.preferences=Preferences('Ekin',{'canvas_height':600})

        try:
            f=self.preferences.get('font')
            self.font_input.set(f)
        except:
            self.preferences.set('font','fixed')
        try:
            f=self.preferences.get('fontsize')
            self.fontsize_input.set(f)
        except:
            self.preferences.set('fontsize',12)
        try:
            f=self.preferences.get('fontstyle')
            self.fontstyle_input.set(f)
        except:
            self.preferences.set('fontstyle',1)
        try:
            self.graphsize =self.preferences.get('graphsize')

        except:
            self.preferences.set('graphsize','500x400')
        return
Loads the sequence display settings from prefs file, if present
Loads the sequence display settings from prefs file, if present
Loads the sequence display settings from prefs file if present
def load_preferences(self):
        from PEATDB.Prefs import Preferences
        print 'Loading current Ekin preferences'
        self.preferences=Preferences('Ekin',{'canvas_height':600})
        try:
            f=self.preferences.get('font')
            self.font_input.set(f)
        except:
            self.preferences.set('font','fixed')
        try:
            f=self.preferences.get('fontsize')
            self.fontsize_input.set(f)
        except:
            self.preferences.set('fontsize',12)
        try:
            f=self.preferences.get('fontstyle')
            self.fontstyle_input.set(f)
        except:
            self.preferences.set('fontstyle',1)
        try:
            self.graphsize =self.preferences.get('graphsize')
        except:
            self.preferences.set('graphsize','500x400')
        return
def load_preferences ( self ) : from PEATDB . Prefs import Preferences print 'Loading current Ekin preferences' self . preferences = Preferences ( 'Ekin' , { 'canvas_height' : 600 } ) try : f = self . preferences . get ( 'font' ) self . font_input . set ( f ) except : self . preferences . set ( 'font' , 'fixed' ) try : f = self . preferences . get ( 'fontsize' ) self . fontsize_input . set ( f ) except : self . preferences . set ( 'fontsize' , 12 ) try : f = self . preferences . get ( 'fontstyle' ) self . fontstyle_input . set ( f ) except : self . preferences . set ( 'fontstyle' , 1 ) try : self . graphsize = self . preferences . get ( 'graphsize' ) except : self . preferences . set ( 'graphsize' , '500x400' ) return
Loads the sequence display settings from prefs file, if present
Loads the sequence display settings from prefs file if present
"""Loads the sequence display settings from prefs file, if present"""
self