wx.DataObjectSimple

Inheritance diagram for 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.

Derived From

Methods Summary

Properties Summary

Class API

Methods

__init__(format=wx.FormatInvalid)

Constructor accepts the supported format (None by default) which may also be set later with SetFormat.

Parameters:


Returns:

wx.DataObjectSimple


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


SetFormat(format)

Sets the supported format.

Parameters:


Properties

Format
See GetFormat and SetFormat