******************* wx.DataObjectSimple ******************* Inheritance diagram for `wx.DataObjectSimple`: | .. inheritance-diagram:: wx.DataObjectSimple | Description =========== This is the simplest possible implementation of the `wx.DataObject `_ class. The data object of (a class derived from) this class only supports one format, so the number of virtual functions to be implemented is reduced. .. note:: This is still an abstract base class and cannot be used but should be derived from. .. warning:: If you wish to create a derived `wx.DataObjectSimple` class in wxPython you should derive the class from `wx.PyDataObjectSimple `_ in order to get Python-aware capabilities for the various virtual methods. .. seealso:: `wx.FileDataObject `_, `wx.TextDataObject `_, `wx.BitmapDataObject `_ Derived From ^^^^^^^^^^^^^ * `wx.DataObject `_ Known Subclasses ^^^^^^^^^^^^^^^^ `wx.BitmapDataObject `_, `wx.CustomDataObject `_, `wx.FileDataObject `_, `wx.MetafileDataObject `_, `wx.PyBitmapDataObject `_, `wx.PyDataObjectSimple `_, `wx.PyTextDataObject `_, `wx.TextDataObject `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetFormat <#GetFormat>`_ * `SetFormat <#SetFormat>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Format <#Format>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(format=wx.FormatInvalid) Constructor accepts the supported format (``None`` by default) which may also be set later with `SetFormat <#SetFormat>`_. **Parameters:** * `format` (`wx.DataFormat `_) | **Returns:** `wx.DataObjectSimple `_ -------- .. method:: GetFormat(dir) Returns the (one and only one) format supported by this object. It is supposed that the format is supported in both directions. **Parameters:** * `dir` (int) | **Returns:** `wx.DataFormat `_ -------- .. method:: SetFormat(format) Sets the supported format. **Parameters:** * `format` (`wx.DataFormat `_) -------- Properties ^^^^^^^^^^ .. attribute:: Format See `GetFormat <#GetFormat>`_ and `SetFormat <#SetFormat>`_