Exemple #1
0
    def _createDnDSource(self, dataObject):
        enum = dataObject.EnumFormatEtc()
        formatEtcs = []
        next = enum.Next()
        while next:
            for formatEtc in next:
                formatEtcs.append(formatEtc)
            next = enum.Next()

        #self._printFormatEtcs(formatEtcs)

        dndSource = ZCompositeDnDSource()
        for reader in self.dndSourceReaders:
            formatEtc = (reader.getClipboardFormat(), None, DVASPECT_CONTENT, -1, TYMED_HGLOBAL)
            if formatEtc in formatEtcs:
                stgMedium = dataObject.GetData(formatEtc)
                dndSource.addSource(reader.readDnDSource(stgMedium))

        return dndSource
 def _createDnDSource(self, url):
     dndSource = ZCompositeDnDSource()
     dndSource.addSource(ZUrlDnDSource(url))
     return dndSource
Exemple #3
0
 def _createDnDSource(self, url):
     dndSource = ZCompositeDnDSource()
     dndSource.addSource(ZUrlDnDSource(url))
     return dndSource