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

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

src/g/r/gramps-3.4.2/src/ScratchPad.py   Gramps(Download)
class ScratchSourceLink(ScratchHandleWrapper):
 
    DROP_TARGETS = [DdTargets.SOURCE_LINK]
    DRAG_TARGET  = DdTargets.SOURCE_LINK
    ICON         = ICONS["source"]

src/g/r/gramps-3.4.2/src/gui/editors/displaytabs/citationembedlist.py   Gramps(Download)
    _HANDLE_COL = 4  # Column number from CitationRefModel
    _DND_TYPE = DdTargets.CITATION_LINK
    _DND_EXTRA = DdTargets.SOURCE_LINK
 
    _MSG = {

src/g/r/gramps-3.4.2/src/plugins/view/citationtreeview.py   Gramps(Download)
        if len(selection) == 1 and \
            self.dbstate.db.get_source_from_handle(selection[0]):
                return DdTargets.SOURCE_LINK
        else:
            return DdTargets.CITATION_LINK

src/g/r/gramps-3.4.2/src/plugins/view/sourceview.py   Gramps(Download)
    def drag_info(self):
        return DdTargets.SOURCE_LINK
 
    def define_actions(self):
        ListView.define_actions(self)