.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.TextUrlEvent:
==========================================================================================================================================
|phoenix_title| **wx.TextUrlEvent**
==========================================================================================================================================
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
TextUrlEvent:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.TextUrlEvent.__init__`
:meth:`~wx.TextUrlEvent.Clone` Returns a copy of the event.
:meth:`~wx.TextUrlEvent.GetMouseEvent`
:meth:`~wx.TextUrlEvent.GetURLEnd`
:meth:`~wx.TextUrlEvent.GetURLStart`
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.TextUrlEvent.MouseEvent` See :meth:`~wx.TextUrlEvent.GetMouseEvent`
:attr:`~wx.TextUrlEvent.URLEnd` See :meth:`~wx.TextUrlEvent.GetURLEnd`
:attr:`~wx.TextUrlEvent.URLStart` See :meth:`~wx.TextUrlEvent.GetURLStart`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.TextUrlEvent(CommandEvent)
**Possible constructors**::
TextUrlEvent(winid : int, evtMouse : MouseEvent, start : int, end : int)
-> None
TextUrlEvent(event : TextUrlEvent) -> None
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self, winid : int, evtMouse : MouseEvent, start : int, end : int)`
:param `winid`:
:type `winid`: int
:param `evtMouse`:
:type `evtMouse`: wx.MouseEvent
:param `start`:
:type `start`: long
:param `end`:
:type `end`: long
:rtype: `None`
:html:`
`
**__init__** `(self, event : TextUrlEvent)`
:param `event`:
:type `event`: wx.TextUrlEvent
:rtype: `None`
:html:`
`
.. method:: Clone(self)
Returns a copy of the event.
Any event that is posted to the wxWidgets event system for later action (via :meth:`wx.EvtHandler.AddPendingEvent` , :meth:`wx.EvtHandler.QueueEvent` or `wx.PostEvent` ) must implement this method.
All wxWidgets events fully implement this method, but any derived events implemented by the user should also implement this method just in case they (or some event derived from them) are ever posted.
All wxWidgets events implement a copy constructor, so the easiest way of implementing the Clone function is to implement a copy constructor for a new event (call it MyEvent) and then define the Clone function like this:
::
def Clone(self):
return MyEvent()
:rtype: :ref:`wx.Event`
.. method:: GetMouseEvent(self)
:rtype: :ref:`wx.MouseEvent`
.. method:: GetURLEnd(self)
:rtype: `int`
.. method:: GetURLStart(self)
:rtype: `int`
.. attribute:: MouseEvent
See :meth:`~wx.TextUrlEvent.GetMouseEvent`
.. attribute:: URLEnd
See :meth:`~wx.TextUrlEvent.GetURLEnd`
.. attribute:: URLStart
See :meth:`~wx.TextUrlEvent.GetURLStart`