| |
Methods defined here:
- __init__(self, types)
- Call this after initialising the widget.
Types is a list of MIME-types, or None to only accept files.
- xds_data_received(self, widget, context, x, y, selection, info, time)
- Called when we get some data. Internal.
- xds_load_data(self, data)
- Called when we get any data sent via drag-and-drop in any way (local
file or remote application transfer). You should override this and do
something with the data.
- xds_load_from_file(self, path)
- Try to load this local file. Override this if you have a better way
to load files. The default method loads the file and calls xds_load_data().
- xds_load_from_selection(self, selection)
- Try to load this selection (data from another application). The default
fetches the data in one go and calls xds_load_data().
- xds_load_uris(self, uris)
- Try to load each URI in the list. Override this if you can handle URIs
directly. The default method passes each local path to xds_load_from_file()
and displays an error for anything else.
- xds_proxy_for(self, widget)
- Handle drops on this widget as if they were to 'self'.
|