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

All Samples(15)  |  Call(14)  |  Derive(0)  |  Import(1)

src/g/r/gramps-3.4.2/src/gen/proxy/private.py   Gramps(Download)
#
#-------------------------------------------------------------------------
from gen.lib import (MediaRef, Attribute, Address, EventRef, 
                     Person, Name, Source, RepoRef, MediaObject, Place, Event, 
                     Family, ChildRef, Repository, LdsOrd, Surname, Citation)
    @rtype: MediaRef
    """
    new_ref = MediaRef()
    new_ref.set_rectangle(media_ref.get_rectangle())
 

src/g/r/gramps-3.4.2/src/plugins/lib/libgedcom.py   Gramps(Download)
 
            handle = self.__find_object_handle(gramps_id)
            ref = gen.lib.MediaRef()
            ref.set_reference_handle(handle)
            state.person.add_media_reference(ref)
 
            handle = self.__find_object_handle(gramps_id)
            ref = gen.lib.MediaRef()
            ref.set_reference_handle(handle)
            state.family.add_media_reference(ref)
 
            handle = self.__find_object_handle(gramps_id)
            ref = gen.lib.MediaRef()
            ref.set_reference_handle(handle)
            state.event.add_media_reference(ref)
 
            handle = self.__find_object_handle(gramps_id)
            ref = gen.lib.MediaRef()
            ref.set_reference_handle(handle)
            state.place.add_media_reference(ref)
 
            handle = self.__find_object_handle(gramps_id)
            ref = gen.lib.MediaRef()
            ref.set_reference_handle(handle)
            state.citation.add_media_reference(ref)

src/g/r/gramps-3.4.2/src/plugins/import/ImportXml.py   Gramps(Download)
    def start_objref(self, attrs):
        """
        Add a media object reference to the object currently processed.
        """
        self.objref = gen.lib.MediaRef()
    def start_photo(self, attrs):
        self.photo = gen.lib.MediaObject()
        self.pref = gen.lib.MediaRef()
        self.pref.set_reference_handle(self.photo.get_handle())
 

src/g/r/gramps-3.4.2/src/gui/editors/displaytabs/gallerytab.py   Gramps(Download)
    def add_button_clicked(self, obj):
        try:
            from gui.editors import EditMediaRef
            EditMediaRef(self.dbstate, self.uistate, self.track, 
                         gen.lib.MediaObject(), gen.lib.MediaRef(),
        src = sel.run()
        if src:
            sref = gen.lib.MediaRef()
            try:
                from gui.editors import EditMediaRef
                    self.rebuild()
                elif mytype == DdTargets.MEDIAOBJ.drag_type:
                    oref = gen.lib.MediaRef()
                    oref.set_reference_handle(obj)
                    self.get_data().append(oref)
                                   self.dbstate.db) as trans:
                            self.dbstate.db.add_object(photo, trans)
                            oref = gen.lib.MediaRef()
                            oref.set_reference_handle(photo.get_handle())
                            self.get_data().append(oref)