def dropEvent(self, event): #print 'in dropEvent', event qlist = QStringList() if QUriDrag.decodeToUnicodeUris(event, qlist): if len(qlist) == 1: url = qlist[0] dlg = ImportGameUrlDialog(self) dlg.url_entry.setText(url) dlg.show()
def dragEnterEvent(self, event): #print 'in dragEnterEvent', event event.accept(QUriDrag.canDecode(event))
def _handle_drop_event(self, event): qlist = QStringList() if QUriDrag.decodeToUnicodeUris(event, qlist): return qlist
def dragEnterEvent(self, event): event.accept(QUriDrag.canDecode(event))