Table Of Contents

Previous topic

UIActionSimulator

Next topic

UpdateUI

This Page

phoenix_title URLDataObject

URLDataObject is a DataObject containing an URL and can be used e.g.

when you need to put an URL on or retrieve it from the clipboard:

wx.TheClipboard.SetData(wx.URLDataObject(url))

Note

This class is derived from DataObjectComposite on Windows rather than TextDataObject on all other platforms.


class_hierarchy Inheritance Diagram

Inheritance diagram for class URLDataObject

Inheritance diagram of URLDataObject


method_summary Methods Summary

__init__ Constructor, may be used to initialize the URL.
GetAllFormats Returns a list of wx.DataFormat objects which this data object supports
GetURL Returns the URL stored by this object, as a string.
SetURL Sets the URL stored by this object.

property_summary Properties Summary

AllFormats See GetAllFormats
URL See GetURL and SetURL

api Class API



class URLDataObject(DataObject)

URLDataObject is a DataObject containing an URL and can be used e.g.

Possible constructors:

URLDataObject(url='')

Methods



__init__(self, url='')

Constructor, may be used to initialize the URL.

If url is empty, SetURL can be used later.

Parameters:url (string) –


GetAllFormats(self, dir=DataObject::Get)
Returns a list of wx.DataFormat objects which this data object supports transfering in the given direction.
Return type:PyObject


GetURL(self)

Returns the URL stored by this object, as a string.

Return type:string


SetURL(self, url)

Sets the URL stored by this object.

Parameters:url (string) –

Properties



AllFormats

See GetAllFormats



URL

See GetURL and SetURL