Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(36)  |  Call(36)  |  Derive(0)  |  Import(0)

src/g/r/gramps-3.4.2/src/plugins/gramplet/PedigreeGramplet.py   Gramps(Download)
                    boxes = boxes.replace("+", u"\\")
            self.append_text(boxes)
            self.link(name_displayer.display_name(person.get_primary_name()),
                      'Person', person.handle, 
                      tooltip=_("Click to make active\n") + \
            self.append_text("     ")
            if g == 0:
                self.link(_("Generation 1"), 'PersonList', handles, 
                          tooltip=_("Double-click to see people in generation"))
                percent = locale.format( '%.2f', 100) + percent_sign
                self.append_text(_(" has 1 of 1 individual (%(percent)s complete)\n") %  {'percent': percent})
            else:
                all.extend(handles)
                self.link(_("Generation %d") % g, 'PersonList', handles,
                    " has %(count_person)d of %(max_count_person)d individuals (%(percent)s complete)\n",
                    2**(g-1)) %  {'count_person': count, 'max_count_person': 2**(g-1), 'percent': percent})
        self.link(_("All generations"), 'PersonList', all,
                  tooltip=_("Double-click to see all generations"))
        self.append_text(ngettext(

src/g/r/gramps-3.4.2/src/plugins/gramplet/DescendGramplet.py   Gramps(Download)
    def dump(self,level,person):
        self.append_text("    " * (level - 1))
        self.append_text("%s. " % level)
        self.link(name_displayer.display_name(person.get_primary_name()),
                  'Person', person.handle, 
                self.append_text("    " * (level - 1))
                self.append_text(_("   sp. ")) 
                self.link(name_displayer.display_name(spouse.get_primary_name()),
                          'Person', spouse.handle, 
                          tooltip=_("Click to make active\n") + \

src/g/r/gramps-3.4.2/src/plugins/gramplet/AgeStats.py   Gramps(Download)
                self.append_text((" %3d-%3d" % (i * 5, (i+1)* 5,)))
                selected = self.make_handles_set(i * 5, (i+1) *5, handles)
                self.link(self.format("X" * int(bin/max_bin * (graph_width-4)), 
                            graph_width-4),
                          'PersonList', 

src/g/r/gramps-3.4.2/src/plugins/gramplet/SurnameCloudGramplet.py   Gramps(Download)
                    text = surname
                size = make_tag_size(count, counts, mins=mins, maxs=maxs)
                self.link(text, 'Surname', representative_handle[surname], size,
                          "%s, %d%% (%d)" % (text, 
                                             int((float(count)/total_people) * 100), 

src/g/r/gramps-3.4.2/src/plugins/gramplet/StatsGramplet.py   Gramps(Download)
        self.append_text(_("Individuals") + "\n")
        self.append_text("----------------------------\n")
        self.link(_("Number of individuals") + ":",
                  'Filter', 'all people')
        self.append_text(" %s" % database.get_number_of_people())
        self.append_text("\n")
        self.link("%s:" % _("Males"), 'Filter', 'males')
        self.append_text(" %s" % males)
        self.append_text("\n")
        self.link("%s:" % _("Females"), 'Filter', 'females')
        self.append_text(" %s" % females)
        self.append_text("\n")
        self.link("%s:" % _("Individuals with unknown gender"),
                  'Filter', 'people with unknown gender')
        self.append_text(" %s" % unknowns)
        self.append_text("\n")
        self.link("%s:" % _("Individuals with incomplete names"),

src/g/r/gramps-3.4.2/src/plugins/gramplet/GivenNameGramplet.py   Gramps(Download)
                    text = givensubname
                size = make_tag_size(count, counts)
                self.link(text, 'Given', text, size,
                          "%s, %.2f%% (%d)" % 
                          (text, 

src/g/r/gramps-3.4.2/src/plugins/gramplet/AttributesGramplet.py   Gramps(Download)
        for attr in active_person.attribute_list:
            # # text, type, data
            self.link(str(attr.type), 'Attribute', str(attr.type)) 
            self.append_text(": %s\n" % attr.get_value())
        self.append_text("\n", scroll_to="begin")

src/g/r/gramps-3.4.2/src/plugins/gramplet/RelativeGramplet.py   Gramps(Download)
                text = "%s" %  spousename
                self.append_text(_("%d. Partner: ") % (famc))
                self.link(text, 'Person', spouse_handle)
                self.append_text("\n")
            else:
                text = "%s" %  childname
                self.append_text("   %d.%-3d: " % (famc, childc))
                self.link(text, 'Person', child_ref.ref)
                self.append_text("\n")
            yield True
                text = "%s" %  mothername
                self.append_text(_("   %d.a Mother: ") % (famc))
                self.link(text, 'Person', mother_handle)
                self.append_text("\n")
            else:
                text = "%s" %  fathername
                self.append_text(_("   %d.b Father: ") % (famc))
                self.link(text, 'Person', father_handle)
                self.append_text("\n")
            else:

src/g/r/gramps-3.4.2/src/plugins/Records.py   Gramps(Download)
                    rank = number
                self.append_text("\n  %s. " % (rank+1))
                self.link(unicode(name), handletype, handle)
                self.append_text(" (%s)" % _output(value))
            self.append_text("\n")

src/g/r/gramps-3.4.2/src/plugins/gramplet/TopSurnamesGramplet.py   Gramps(Download)
            text += "%d%% (%d)\n" % (int((float(count)/total) * 100), count)
            self.append_text(" %d. " % (line + 1))
            self.link(text, 'Surname', representative_handle[surname])
            line += 1
            if line >= self.top_size:

  1 | 2  Next