質問

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.

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top