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

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

src/p/y/pyqt5-HEAD/examples/draganddrop/fridgemagnets/fridgemagnets.py   pyqt5(Download)
    def dragEnterEvent(self, event):
        if event.mimeData().hasFormat('application/x-fridgemagnet'):
            if event.source() in self.children():
                event.setDropAction(Qt.MoveAction)
                event.accept()
            newLabel.show()
 
            if event.source() in self.children():
                event.setDropAction(Qt.MoveAction)
                event.accept()

src/p/y/pyqt5-HEAD/examples/draganddrop/draggabletext/draggabletext.py   pyqt5(Download)
    def dragEnterEvent(self, event):
        if event.mimeData().hasText():
            if event.source() in self.children():
                event.setDropAction(Qt.MoveAction)
                event.accept()
                position += QPoint(newLabel.width(), 0)
 
            if event.source() in self.children():
                event.setDropAction(Qt.MoveAction)
                event.accept()