예제 #1
0
 def dropEvent(self, event):
     sources = SignalTreeWidget.getMimeDataSignals(event.mimeData())
     if sources is not None:
         event.acceptProposedAction()
         self.add_plot(sources)
     else:
         event.ignore()
예제 #2
0
 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()