GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.FileDataObject
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.FileDataObject — wxPython 4.3.2 Docs

phoenix_title 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.

See also

wx.DataObject, wx.DataObjectSimple, wx.TextDataObject, wx.BitmapDataObject, wx.DataObject


class_hierarchy Class Hierarchy¶

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).

GetAllFormats

Returns a list of wx.DataFormat objects which this data object

GetFilenames

Returns the array of file names.

SetData


property_summary Properties Summary¶

AllFormats

See GetAllFormats

Filenames

See GetFilenames


api 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

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.