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

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

src/g/r/gramps-3.4.2/src/gui/views/tags.py   Gramps(Download)
        """
        tag = Tag()
        tag.set_priority(self.db.get_number_of_tags())
        new_dialog = EditTag(self.db, self.uistate.window, tag)
        new_dialog.run()
        """
        tag = Tag()
        tag.set_priority(self.db.get_number_of_tags())
        edit_dialog = EditTag(self.db, top, tag)
        edit_dialog.run()

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
        self.tag.set_name(attrs.get('name', _('Unknown when imported')))
        self.tag.set_color(attrs.get('color', '#000000000000'))
        self.tag.set_priority(int(attrs.get('priority', 0)))
        return self.tag
 
                tag = gen.lib.Tag()
                tag.set_name(tag_name)
                tag.set_priority(self.db.get_number_of_tags())
                tag_handle = self.db.add_tag(tag, self.trans)
            else:

src/g/r/gramps-3.4.2/src/plugins/tool/NotRelated.py   Gramps(Download)
                tag = Tag()
                tag.set_name(tag_name)
                tag.set_priority(self.db.get_number_of_tags())
                tag_handle = self.db.add_tag(tag, transaction)
            else: