Table Of Contents

Previous topic

FileCtrlEvent

Next topic

FileDialog

This Page

phoenix_title FileDataObject

FileDataObject is a specialization of DataObject for file names.

The program works with it just as if it were a list of absolute file names, but internally it uses the same format as Explorer and other compatible programs under Windows or GNOME/KDE filemanager under Unix which makes it possible to receive files from them using this class.

Warning

Under all non-Windows platforms this class is currently “input-only”, i.e. you can receive the files from another application, but copying (or dragging) file(s) from a wxWidgets application is not currently supported. PS: GTK2 should work as well.


class_hierarchy Inheritance Diagram

Inheritance diagram for class FileDataObject

Inheritance diagram of FileDataObject


method_summary Methods Summary

__init__ Constructor.
AddFile Adds a file to the file list represented by this data object (Windows only).
GetFilenames Returns the array of file names.

property_summary Properties Summary

Filenames See GetFilenames

api Class API



class FileDataObject(DataObjectSimple)

FileDataObject is a specialization of DataObject for file names.

Possible constructors:

FileDataObject()

Methods



__init__(self)

Constructor.



AddFile(self, file)

Adds a file to the file list represented by this data object (Windows only).

Parameters:file (string) –


GetFilenames(self)

Returns the array of file names.

Return type:list of strings

Properties



Filenames

See GetFilenames