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

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

src/g/r/gramps-3.4.2/src/plugins/lib/libgedcom.py   Gramps(Download)
        note_type = gen.lib.NoteType()
        note_type.set((gen.lib.NoteType.CUSTOM, _("GEDCOM import")))
        new_note.set_type(note_type)
        self.dbase.add_note(new_note, self.trans)
        # If possible, attach the note to the relevant object
        gramps_id = self.dbase.find_next_note_gramps_id()
        note.set_gramps_id(gramps_id)
        note.set_type(gen.lib.NoteType.SOURCE_TEXT)
        self.dbase.add_note(note, self.trans)
 
        gramps_id = self.dbase.find_next_note_gramps_id()
        note.set_gramps_id(gramps_id)
        note.set_type(gen.lib.NoteType.SOURCE_TEXT)
        self.dbase.add_note(note, self.trans)
 

src/g/r/gramps-3.4.2/src/plugins/import/ImportProGen.py   Gramps(Download)
                    note = gen.lib.Note()
                    note.set('\n'.join(note_txt))
                    note.set_type(gen.lib.NoteType.PERSON)
                    self.db.add_note(note, self.trans)
                    person.add_note(note.handle)
                        note = gen.lib.Note()
                        note.set(note_txt)
                        note.set_type(gen.lib.NoteType.EVENT)
                        self.db.add_note(note, self.trans)
                        event.add_note(note.handle)
                        note = gen.lib.Note()
                        note.set(note_txt)
                        note.set_type(gen.lib.NoteType.EVENT)
                        self.db.add_note(note, self.trans)
                        event.add_note(note.handle)
                        note = gen.lib.Note()
                        note.set(note_txt)
                        note.set_type(gen.lib.NoteType.EVENT)
                        self.db.add_note(note, self.trans)
                        event.add_note(note.handle)
                        note = gen.lib.Note()
                        note.set(note_txt)
                        note.set_type(gen.lib.NoteType.EVENT)
                        self.db.add_note(note, self.trans)
                        event.add_note(note.handle)

src/g/r/gramps-3.4.2/src/gui/editors/displaytabs/notetab.py   Gramps(Download)
        note = gen.lib.Note()
        if self.notetype :
            note.set_type(self.notetype)
        try:
            from gui.editors import EditNote

src/g/r/gramps-3.4.2/src/gui/editors/editnote.py   Gramps(Download)
        empty_note = Note();
        if self.extratype:
            empty_note.set_type(self.extratype[0])
        return empty_note
 

src/g/r/gramps-3.4.2/src/Filters/SideBar/_NoteSidebarFilter.py   Gramps(Download)
 
        self.note = Note()
        self.note.set_type((NoteType.CUSTOM,''))
        self.ntype = gtk.ComboBoxEntry()
        self.event_menu = widgets.MonitoredDataType(