Dragging and dropping in rich text example app

Heads up! You've already completed this tutorial.

Robert_Stoffers | 2020-05-11 08:57:06 UTC | #1

This works dragging and dropping from Chrome, however it doesn't work on Firefox for me. Instead, u.toLocalFile() returns a blank string with Firefox.

https://www.pythonguis.com/examples/megasolid-idiom-rich-text-editor/


Robert_Stoffers | 2020-05-11 09:02:44 UTC | #2

Its actually stranger then this. In both browsers, if I drag and drop the image of the application above from this webpage it fails with a blank image. However, if I say go to Google and say do an image search drag and drop works with both browsers.


1:1 Coaching & Tutoring for your Python GUIs project
Martin Fitzpatrick Python GUIs Coaching & Training
60 mins ($195) More info

1:1 Python GUIs Coaching & Training

Comprehensive code reviewBugfixes & improvements • Maintainability advice and architecture improvements • Design and usability assessment • Suggestions and tips to expand your knowledgePackaging and distribution help for Windows, Mac & Linux • Find out more.

Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Dragging and dropping in rich text example app was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.