* various: const.py changes

2007-09-07  Don Allingham  <don@gramps-project.org>
	* src/DateHandler/_Date_fr.py: fix indentation errors

2007-09-07  Don Allingham  <don@gramps-project.org>


svn: r8948
This commit is contained in:
Don Allingham
2007-09-08 05:54:02 +00:00
parent afb2bbc201
commit a65a73d1d7
104 changed files with 390 additions and 395 deletions

View File

@@ -105,16 +105,16 @@ class FamilyPreviewFrame(PreviewFrameBase):
image[image_no].set_from_pixbuf(pixbuf)
image_no += 1
else:
self._image_l.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image_r.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image_l.set_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
self._image_r.set_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
except:
log.warn("Failed to generate preview for family", exc_info=True)
self.clear_object()
def clear_object(self):
self._image_l.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image_r.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image_l.set_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
self._image_r.set_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
if gtk.pygtk_version < (2,8,0):

View File

@@ -157,8 +157,8 @@ class ObjectSelectorWindow(gtk.Window,ManagedWindow):
try:
person_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.image_dir,"person.svg"))
flist_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.image_dir,"flist.svg"))
person_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
flist_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.IMAGE_DIR,"flist.svg"))
self._tool_list = gtk.ListStore(gtk.gdk.Pixbuf, str,int)
@@ -370,7 +370,7 @@ if __name__ == "__main__":
state = GrampsDb.DbState()
vm = ViewManager.ViewManager(state)
db = GrampsDb.gramps_db_factory(const.app_gramps)()
db = GrampsDb.gramps_db_factory(const.APP_GRAMPS)()
db.load(os.path.realpath(sys.argv[1]),
cb, # callback
"w")

View File

@@ -63,7 +63,7 @@ class PersonPreviewFrame(PreviewFrameBase):
self._image = gtk.Image()
# test image
self._image.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image.set_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
# Text
label = gtk.Label()
@@ -143,7 +143,7 @@ class PersonPreviewFrame(PreviewFrameBase):
pixbuf = ImgManip.get_thumbnail_image(mobj.get_path())
self._image.set_from_pixbuf(pixbuf)
else:
self._image.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image.set_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
self._label.set_markup(self._get_text_preview(person))
@@ -158,7 +158,7 @@ class PersonPreviewFrame(PreviewFrameBase):
def clear_object(self):
self._image.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image.set_from_file(os.path.join(const.IMAGE_DIR,"person.svg"))
self._label.set_markup("")