cleanup (typos, docs, indentation)

svn: r12921
This commit is contained in:
Raphael Ackermann 2009-08-08 15:52:12 +00:00
parent 3f1f088b55
commit eeac507a40
4 changed files with 10 additions and 11 deletions

View File

@ -62,9 +62,9 @@ class ExportPlugin(Plugin):
def get_export_function(self): def get_export_function(self):
""" """
Get the import function for this plugins. Get the export function for this plugin.
@return: the callable import_function passed into __init__ @return: the callable export_function passed into __init__
""" """
return self.__export_func return self.__export_func

View File

@ -1,14 +1,13 @@
import gobject
import gtk import gtk
class ValidatableMaskedEntry(gtk.Entry): class ValidatableMaskedEntry(gtk.Entry):
__gtype_name__ = 'ValidatableMaskedEntry' __gtype_name__ = 'ValidatableMaskedEntry'
def __init__(self): def __init__(self):
gtk.Entry.__init__(self) gtk.Entry.__init__(self)
class StyledTextEditor(gtk.TextView): class StyledTextEditor(gtk.TextView):
__gtype_name__ = 'StyledTextEditor' __gtype_name__ = 'StyledTextEditor'
def __init__(self): def __init__(self):
gtk.Entry.__init__(self) gtk.Entry.__init__(self)

View File

@ -1,4 +1,4 @@
# #
# Gramps - a GTK+/GNOME based genealogy program # Gramps - a GTK+/GNOME based genealogy program
# #
# Copyright (C) 2009 Gerald Britton <gerald.britton@gmail.com> # Copyright (C) 2009 Gerald Britton <gerald.britton@gmail.com>

View File

@ -518,7 +518,7 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
return tmp return tmp
# + self.get_sword_distaff(level, reltocommon, ' ') # + self.get_sword_distaff(level, reltocommon, ' ')
else: else:
return t_inlaw + \ return t_inlaw + \
"przodek %s pokolenia" % (_level_name[level - 1]) "przodek %s pokolenia" % (_level_name[level - 1])
else: else:
return t_inlaw +"przodek w %d pokoleniu" % level return t_inlaw +"przodek w %d pokoleniu" % level