Question

Is it possible in Clutter to drag a file from, lets say a file manager (Nautilus/Nemo) to an actor in the Clutter programs window and have it then do something with the file (URI)?

I looked it up and found Clutter.DragAction, but that looks like it is only for use inside the Clutter stage itself.

Please provide any examples in Python. Thanks.

Was it helpful?

Solution

no, you can't directly accept drops from other applications. Clutter does not have a XDND implementation.

you can use clutter-gtk and implement drag and drop on a GtkClutterEmbed through the usual signals, as described on the GNOME wiki: https://wiki.gnome.org/GnomeLove/DragNDropTutorial

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top