def createDraggingImage(self, element): self.draggingImage = DraggingWidget(element) return self.draggingImage