Package wx :: Class CustomDataObject
[frames | no frames]

Type CustomDataObject

  object --+        
           |        
  DataObject --+    
               |    
DataObjectSimple --+
                   |
                  CustomDataObject


wx.CustomDataObject is a specialization of wx.DataObjectSimple for some application-specific data in arbitrary format. Python strings are used for getting and setting data, but any picklable object can easily be transfered via strings. A copy of the data is stored in the data object.
Method Summary
CustomDataObject __init__(self, format)
__init__(self, String formatName) -> CustomDataObject __init__(self) -> CustomDataObject
  __repr__(self)
String GetData(self)
Returns the data bytes from the data object as a string.
size_t GetSize(self)
Get the size of the data.
bool SetData(self, data)
Copy the data value to the data object.
bool TakeData(self, data)
Copy the data value to the data object.

Class Variable Summary

Method Details

__init__(self, format)
(Constructor)

__init__(self, String formatName) -> CustomDataObject __init__(self) -> CustomDataObject

wx.CustomDataObject is a specialization of wx.DataObjectSimple for some application-specific data in arbitrary format. Python strings are used for getting and setting data, but any picklable object can easily be transfered via strings. A copy of the data is stored in the data object.

Parameters:
format
           (type=DataFormat)
Returns:
CustomDataObject
Overrides:
wx.DataObjectSimple.__init__

GetData(self)

Returns the data bytes from the data object as a string.
Returns:
String

GetSize(self)

Get the size of the data.
Returns:
size_t

SetData(self, data)

Copy the data value to the data object.
Parameters:
data
           (type=String)
Returns:
bool
Overrides:
wx.DataObjectSimple.SetData

TakeData(self, data)

Copy the data value to the data object.
Parameters:
data
           (type=String)
Returns:
bool
Overrides:
wx.DataObjectSimple.SetData

Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:23:17 2005 http://epydoc.sf.net