Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top