Commit 9bcf25eda8cc3d8a86e6b1cce6109ab595b5a692

Update TODO.
TODO
(4 / 1)
  
11NFO Viewer 3000
22===============
33
4 * Bump GTK+ dependency to 2.16
4 * Bump PyGTK dependency to 2.16
55 - Use attributes instead of markup in preferences-dialog.ui
6 * Bump PyGobject dependency to 2.14
7 - gobject.set_application_name(_("NFO Viewer"))
8 - gobject.set_prgname("nfoview")
69 * Get link and visited link colors from GTK+ theme
710 * Make hyperlinks activatable by keyboard
nfoview/config.py
(3 / 3)
  
7575 self.restore_defaults()
7676
7777 def read_from_file(self):
78 """Read values of configuration fields from file."""
78 """Read values of configuration options from file."""
7979 if not os.path.isfile(self.path): return
8080 entries = open(self.path, "r").readlines()
8181 entries = map(lambda x: x.strip(), entries)
8787 self.version = nfoview.__version__
8888
8989 def restore_defaults(self):
90 """Set all configuration fields to their default values."""
90 """Set all configuration options to their default values."""
9191 for name in self._fields:
9292 setattr(self, name, self._fields[name][self.DEFAULT])
9393 self.version = nfoview.__version__
9494
9595 def write_to_file(self):
96 """Write values of configuration fields to file."""
96 """Write values of configuration options to file."""
9797 directory = os.path.dirname(self.path)
9898 if not os.path.isdir(directory):
9999 try: os.makedirs(directory)

Comments

Add a new comment:

Login or create an account to post a comment

Add your comment