wx.URLDataObject

Inheritance diagram for wx.URLDataObject:



Description

wx.URLDataObject is a wx.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))

See also

wx.DataObject

Methods Summary

Properties Summary

Class API

Methods

__init__(url="")

This data object holds a URL in a format that is compatible with some browsers such that it is able to be dragged to or from them.

If url is empty, SetURL can be used later.

Parameters:

  • url (string)

Returns:

wx.URLDataObject


GetURL()

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


Returns:

string


SetURL(url)

Sets the URL stored by this object.

Parameters:

  • url (string)

Properties

URL
See GetURL and SetURL