B
    8f¹_©  ã               @   st  d Z ddlT ddlZdd„ Zee_[dd„ Zee_[d	d
„ Zee_	[dd„ Z
e
e_[
dd„ Zee_[dd„ Zee_[dd„ Zee_[dd„ Zee_[dd„ Zee_[de_eddƒZeddƒZeddƒZdd„ Zee_	[dd„ Zee_	[dd„ Zee_	[d d!„ Z e e!_	[ d"d#„ Z"e"e#_	["d$d%„ Z$e$e%_	[$d&d'„ Z&e&e'_	[&dd(l(m)Z) e)d)d*d+gƒZ*[)d,d-„ Z+e+e,_	[+d.d/„ Z-e-e._	[-d0d1„ Z/e/e0_	[/d2d3„ Z1e1e2_	[1d4d5„ Z3e 4e3d6¡e5_6[3e7e5j6e5j8ƒe5_9e :e;¡Z<e :e=¡Z>e :e?¡Z@e :eA¡ZBe :eC¡ZDe :eE¡ZFe :eG¡ZHe :eI¡ZJe :eK¡ZLe :eM¡ZNe :eO¡ZPe :eQ¡ZRe :eS¡ZTe :eU¡ZVe :eW¡ZVe :eX¡ZYe :eZ¡Z[e :e\¡Z]dS )7a±  
The :class:`RichTextCtrl` is a generic, ground-up implementation of a rich
text control capable of showing multiple text styles and images.  This module
contains the control and many supporting classes needed for using the features
of the :class:`RichTextCtrl`.

.. note:: Due to some internal dynamic initialization in wxWidgets, this
          module should be imported **before** the :class:`wx.App` object is
          created.
é   )Ú*é    Nc             C   s   t |  ¡ Ž S )aT  
    Returns an immutable representation of the ``wx.RichTextRange`` object, based on ``namedtuple``.
    
    This new object is hashable and can be used as a dictionary key,
    be added to sets, etc.  It can be converted back into a real ``wx.RichTextRange``
    with a simple statement like this: ``obj = wx.RichTextRange(imObj)``.
    )Ú_im_RichTextRangeÚGet)Úself© r   ú*lib/python3.7/site-packages/wx/richtext.pyÚ_RichTextRange_GetIM   s    r	   c             C   s   t |  ¡ ƒS )N)Ústrr   )r   r   r   r   Ú_RichTextRange___str__    s    r   c             C   s   dt |  ¡ ƒ S )NÚRichTextRange)r
   r   )r   r   r   r   Ú_RichTextRange___repr__$   s    r   c             C   s   t |  ¡ ƒS )N)Úlenr   )r   r   r   r   Ú_RichTextRange___len__(   s    r   c             C   s   |   ¡ dkS )N)r   r   )r   )r   r   r   r   Ú_RichTextRange___nonzero__,   s    r   c             C   s   |   ¡ dkS )N)r   r   )r   )r   r   r   r   Ú_RichTextRange___bool__0   s    r   c             C   s   t |  ¡ fS )N)r   r   )r   r   r   r   Ú_RichTextRange___reduce__4   s    r   c             C   s   |   ¡ | S )N)r   )r   Úidxr   r   r   Ú_RichTextRange___getitem__8   s    r   c             C   s(   |dkr|| _ n|dkr || _nt‚d S )Nr   r   )ÚStartÚEndÚ
IndexError)r   r   Úvalr   r   r   Ú_RichTextRange___setitem__<   s
      r   Téþÿÿÿéÿÿÿÿc             C   s   dt t| ƒƒ S )NzRichTextRangeArray: )ÚreprÚlist)r   r   r   r   Ú_RichTextRangeArray___repr__H   s    r   c             C   s   dt t| ƒƒ S )NzRichTextAttrArray: )r   r   )r   r   r   r   Ú_RichTextAttrArray___repr__L   s    r   c             C   s   dt t| ƒƒ S )NzRichTextVariantArray: )r   r   )r   r   r   r   Ú_RichTextVariantArray___repr__P   s    r    c             C   s   dt t| ƒƒ S )NzRichTextObjectList: )r   r   )r   r   r   r   Ú_RichTextObjectList___repr__T   s    r!   c             C   s   dt t| ƒƒ S )NzRichTextLineList: )r   r   )r   r   r   r   Ú_RichTextLineList___repr__X   s    r"   c             C   s   dt t| ƒƒ S )NzRichTextObjectPtrArray: )r   r   )r   r   r   r   Ú _RichTextObjectPtrArray___repr__\   s    r#   c             C   s   dt t| ƒƒ S )NzRichTextObjectPtrArrayArray: )r   r   )r   r   r   r   Ú%_RichTextObjectPtrArrayArray___repr__`   s    r$   )Ú
namedtupler   r   r   c             C   s   dt t| ƒƒ S )NzRichTextObjectList_: )r   r   )r   r   r   r   Ú_RichTextObjectList____repr__h   s    r&   c             C   s   dt t| ƒƒ S )NzRichTextFileHandlerList: )r   r   )r   r   r   r   Ú!_RichTextFileHandlerList___repr__l   s    r'   c             C   s   dt t| ƒƒ S )NzRichTextDrawingHandlerList: )r   r   )r   r   r   r   Ú$_RichTextDrawingHandlerList___repr__p   s    r(   c             C   s   dt t| ƒƒ S )NzRichTextActionList: )r   r   )r   r   r   r   Ú_RichTextActionList___repr__t   s    r)   c             C   s   |   ¡ S )N)ZGetDefaultStyleEx)r   r   r   r   Ú_RichTextCtrl_GetDefaultStylex   s    r*   zUse GetDefaultStyleEx instead)^Ú__doc__Z	_richtextZwxr	   r   ZGetIMr   Ú__str__r   Ú__repr__r   Ú__len__r   Z__nonzero__r   Ú__bool__r   Ú
__reduce__r   Ú__getitem__r   Ú__setitem__Z__safe_for_unpickling__ZRICHTEXT_ALLZRICHTEXT_NONEZRICHTEXT_NO_SELECTIONr   ZRichTextRangeArrayr   ZRichTextAttrArrayr    ZRichTextVariantArrayr!   ZRichTextObjectListr"   ZRichTextLineListr#   ZRichTextObjectPtrArrayr$   ZRichTextObjectPtrArrayArrayÚcollectionsr%   r   r&   ZRichTextObjectList_r'   ZRichTextFileHandlerListr(   ZRichTextDrawingHandlerListr)   ZRichTextActionListr*   Z
deprecatedZRichTextCtrlZGetDefaultStyleÚpropertyZSetDefaultStyleZDefaultStyleZPyEventBinderZwxEVT_RICHTEXT_LEFT_CLICKZEVT_RICHTEXT_LEFT_CLICKZwxEVT_RICHTEXT_RIGHT_CLICKZEVT_RICHTEXT_RIGHT_CLICKZwxEVT_RICHTEXT_MIDDLE_CLICKZEVT_RICHTEXT_MIDDLE_CLICKZwxEVT_RICHTEXT_LEFT_DCLICKZEVT_RICHTEXT_LEFT_DCLICKZwxEVT_RICHTEXT_RETURNZEVT_RICHTEXT_RETURNZwxEVT_RICHTEXT_CHARACTERZEVT_RICHTEXT_CHARACTERZwxEVT_RICHTEXT_DELETEZEVT_RICHTEXT_DELETEZ"wxEVT_RICHTEXT_STYLESHEET_CHANGINGZ EVT_RICHTEXT_STYLESHEET_CHANGINGZ!wxEVT_RICHTEXT_STYLESHEET_CHANGEDZEVT_RICHTEXT_STYLESHEET_CHANGEDZ#wxEVT_RICHTEXT_STYLESHEET_REPLACINGZ!EVT_RICHTEXT_STYLESHEET_REPLACINGZ"wxEVT_RICHTEXT_STYLESHEET_REPLACEDZ EVT_RICHTEXT_STYLESHEET_REPLACEDZwxEVT_RICHTEXT_CONTENT_INSERTEDZEVT_RICHTEXT_CONTENT_INSERTEDZwxEVT_RICHTEXT_CONTENT_DELETEDZEVT_RICHTEXT_CONTENT_DELETEDZwxEVT_RICHTEXT_STYLE_CHANGEDZEVT_RICHTEXT_STYLE_CHANGEDZ!wxEVT_RICHTEXT_PROPERTIES_CHANGEDZ wxEVT_RICHTEXT_SELECTION_CHANGEDZEVT_RICHTEXT_SELECTION_CHANGEDZwxEVT_RICHTEXT_BUFFER_RESETZEVT_RICHTEXT_BUFFER_RESETZ#wxEVT_RICHTEXT_FOCUS_OBJECT_CHANGEDZ!EVT_RICHTEXT_FOCUS_OBJECT_CHANGEDr   r   r   r   Ú<module>   s¶   	



















