سؤال

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