/[ascend]/trunk/pygtk/interface/preferences.py
ViewVC logotype

Diff of /trunk/pygtk/interface/preferences.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 319 by johnpye, Thu Feb 23 12:30:40 2006 UTC revision 356 by johnpye, Mon Mar 6 03:43:04 2006 UTC
# Line 94  class Preferences: Line 94  class Preferences:
94          else:          else:
95              val = ""              val = ""
96          self.ini.set(sect,key,val)          self.ini.set(sect,key,val)
97            
98        def getStringPref(self,sect,key,default=None):
99            try:
100                _u = self.ini.get(sect,key)
101            except ConfigParser.NoSectionError:
102                return default
103            except ConfigParser.NoOptionError:
104                return default
105            return _u;
106    
107  # Test script:  # Test script:
108  def main():  def main():

Legend:
Removed from v.319  
changed lines
  Added in v.356

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22