wx.FileDataObject¶
wx.FileDataObject is a specialization of wx.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 file manager under Unix which makes it possible to receive files from them using this class.
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Adds a file to the file list represented by this data object (Windows only). |
|
Returns a list of wx.DataFormat objects which this data object |
|
Returns the array of file names. |
|
Properties Summary¶
See |
|
See |
Class API¶
- class wx.FileDataObject(DataObjectSimple)¶
Possible constructors:
FileDataObject() -> None
FileDataObject is a specialization of DataObject for file names.
Methods¶
- __init__(self)¶
Constructor.
- Return type:
None
- AddFile(self, file)¶
Adds a file to the file list represented by this data object (Windows only).
- Parameters:
file (string)
- Return type:
None
- GetAllFormats(self, dir=DataObject.Get)¶
Returns a list of wx.DataFormat objects which this data object supports transferring in the given direction.
- Return type:
Any
- GetFilenames(self)¶
Returns the array of file names.
- Return type:
List[str]
- SetData(self, format, buf)¶
- Return type:
bool
Properties¶
- AllFormats¶
See
GetAllFormats
- Filenames¶
See
GetFilenames