Вопрос

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