MyTetra Share
Делитесь знаниями!
DataTypes Clipboard
Время создания: 18.05.2017 21:48
Раздел: Python - wx - classes - wx - TextCtrl
Запись: xintrea/mytetra_db_mcold/master/base/14951333012hwfyd6ntu/text.html на raw.githubusercontent.com

Both functions work by creating TextDataObject, which provides a platform-independent

way to represent the systems' native data format. Then, TheClipboard object is opened,

and it is used to either get data from the clipboard of the given type or put data in the

clipboard from the application. This can be boiled down to a simple three step process for any

clipboard interaction:


1. Open clipboard

2. Set or get DataObject

3. Close the clipboard


Closing the clipboard after using is very important; it may prevent other processes from

accessing it. The clipboard should only be kept open momentarily.

There's more…

The clipboard supports many other datatypes besides plain text, which can be used based on

the situation and needs of the application.

Datatypes

Description


wx.BitmapDataObject

This is a bitmap data from the clipboard (drag and drop)


wx.CustomDataObject

This is a base class to represent application-specific data


wx.DataObjectSimple

This is a base class to create other data object types


wx.DataObjectComposite

This is a base class to support multiple formats


wx.FileDataObject

This is the data object for filenames


wx.HTMLDataObject

This is the HTML-formatted text container


wx.URLDataObject

This is the URL container data object

Так же в этом разделе:
 
MyTetra Share v.0.58
Яндекс индекс цитирования