def dropEvent(self, event): sources = SignalTreeWidget.getMimeDataSignals(event.mimeData()) if sources is not None: event.acceptProposedAction() self.add_plot(sources) else: event.ignore()
def dropEvent(self, event): sources = SignalTreeWidget.getMimeDataSignals(event.mimeData()) if sources is not None: event.acceptProposedAction() for name in sources: self.add_signal(name) else: event.ignore()