
    	f                     (   d Z ddl ddlZd Zee_        [d Zee_        [d Zee_	        [d Z
e
e_        [
d	 Zee_        [d
 Zee_        [d Zee_        [d Zee_        [d Zee_        [de_         edd      Z edd      Z edd      Zd Zee_	        [d Zee_	        [d Zee_	        [d Z e e!_	        [ d Z"e"e#_	        ["d Z$e$e%_	        [$ddl&m'Z'  e'dddg      Z(['d Z)e)e*_	        [)d Z+e+e,_	        [+d Z-e-e._	        [-d Z/e/e0_	        [/d Z1 ejd                  e1d       e3_4        [1 e5e3jh                  e3jl                        e3_7         ejp                  e9      Z: ejp                  e;      Z< ejp                  e=      Z> ejp                  e?      Z@ ejp                  eA      ZB ejp                  eC      ZD ejp                  eE      ZF ejp                  eG      ZH ejp                  eI      ZJ ejp                  eK      ZL ejp                  eM      ZN ejp                  eO      ZP ejp                  eQ      ZR ejp                  eS      ZT ejp                  eU      ZT ejp                  eV      ZW ejp                  eX      ZY ejp                  eZ      Z[y)!a  
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                 .    t        | j                          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selfs    -/usr/lib/python3/dist-packages/wx/richtext.py_RichTextRange_GetIMr      s     dhhj))    c                 4    t        | j                               S Nstrr   r   s    r
   _RichTextRange___str__r           txxz?r   c                 :    dt        | j                               z   S )NRichTextRanger   r   s    r
   _RichTextRange___repr__r   $   s    3txxz?**r   c                 4    t        | j                               S r   )lenr   r   s    r
   _RichTextRange___len__r   (   r   r   c                 (    | j                         dk7  S N)r   r   r   r   s    r
   _RichTextRange___nonzero__r   ,       88:r   c                 (    | j                         dk7  S r   r   r   s    r
   _RichTextRange___bool__r   0   r   r   c                 .    t         | j                         fS r   )r   r   r   s    r
   _RichTextRange___reduce__r!   4   s    488:&&r   c                 (    | j                         |   S r   r   )r	   idxs     r
   _RichTextRange___getitem__r$   8   s    88:c?r   c                 B    |dk(  r|| _         y |dk(  r|| _        y t        )Nr   r   )StartEnd
IndexError)r	   r#   vals      r
   _RichTextRange___setitem__r*   <   s"    
axc	c48
r   Tc                 0    dt        t        |             z   S )NzRichTextRangeArray: reprlistr   s    r
   _RichTextRangeArray___repr__r1   H       !Dd$444r   c                 0    dt        t        |             z   S )NzRichTextAttrArray: r.   r   s    r
   _RichTextAttrArray___repr__r4   L   s     4T
#333r   c                 0    dt        t        |             z   S )NzRichTextVariantArray: r.   r   s    r
   _RichTextVariantArray___repr__r6   P   s    #d4:&666r   c                 0    dt        t        |             z   S )NzRichTextObjectList: r.   r   s    r
   _RichTextObjectList___repr__r8   T   r2   r   c                 0    dt        t        |             z   S )NzRichTextObjectPtrArray: r.   r   s    r
    _RichTextObjectPtrArray___repr__r:   X   s    %T$Z(888r   c                 0    dt        t        |             z   S )NzRichTextObjectPtrArrayArray: r.   r   s    r
   %_RichTextObjectPtrArrayArray___repr__r<   \   s    *T$t*-===r   )
namedtupler   r&   r'   c                 0    dt        t        |             z   S )NzRichTextObjectList_: r.   r   s    r
   _RichTextObjectList____repr__r?   d   s    "T$t*%555r   c                 0    dt        t        |             z   S )NzRichTextFileHandlerList: r.   r   s    r
   !_RichTextFileHandlerList___repr__rA   h   s    &d4j)999r   c                 0    dt        t        |             z   S )NzRichTextDrawingHandlerList: r.   r   s    r
   $_RichTextDrawingHandlerList___repr__rC   l   s    )Dd,<<<r   c                 0    dt        t        |             z   S )NzRichTextActionList: r.   r   s    r
   _RichTextActionList___repr__rE   p   r2   r   c                 "    | j                         S r   )GetDefaultStyleExr   s    r
   _RichTextCtrl_GetDefaultStylerH   t   s    !!##r   zUse GetDefaultStyleEx instead)\__doc__	_richtextwxr   r   GetIMr   __str__r   __repr__r   __len__r   __nonzero__r   __bool__r!   
__reduce__r$   __getitem__r*   __setitem____safe_for_unpickling__RICHTEXT_ALLRICHTEXT_NONERICHTEXT_NO_SELECTIONr1   RichTextRangeArrayr4   RichTextAttrArrayr6   RichTextVariantArrayr8   RichTextObjectListr:   RichTextObjectPtrArrayr<   RichTextObjectPtrArrayArraycollectionsr=   r   r?   RichTextObjectList_rA   RichTextFileHandlerListrC   RichTextDrawingHandlerListrE   RichTextActionListrH   
deprecatedRichTextCtrlGetDefaultStylepropertySetDefaultStyleDefaultStylePyEventBinderwxEVT_RICHTEXT_LEFT_CLICKEVT_RICHTEXT_LEFT_CLICKwxEVT_RICHTEXT_RIGHT_CLICKEVT_RICHTEXT_RIGHT_CLICKwxEVT_RICHTEXT_MIDDLE_CLICKEVT_RICHTEXT_MIDDLE_CLICKwxEVT_RICHTEXT_LEFT_DCLICKEVT_RICHTEXT_LEFT_DCLICKwxEVT_RICHTEXT_RETURNEVT_RICHTEXT_RETURNwxEVT_RICHTEXT_CHARACTEREVT_RICHTEXT_CHARACTERwxEVT_RICHTEXT_DELETEEVT_RICHTEXT_DELETE"wxEVT_RICHTEXT_STYLESHEET_CHANGING EVT_RICHTEXT_STYLESHEET_CHANGING!wxEVT_RICHTEXT_STYLESHEET_CHANGEDEVT_RICHTEXT_STYLESHEET_CHANGED#wxEVT_RICHTEXT_STYLESHEET_REPLACING!EVT_RICHTEXT_STYLESHEET_REPLACING"wxEVT_RICHTEXT_STYLESHEET_REPLACED EVT_RICHTEXT_STYLESHEET_REPLACEDwxEVT_RICHTEXT_CONTENT_INSERTEDEVT_RICHTEXT_CONTENT_INSERTEDwxEVT_RICHTEXT_CONTENT_DELETEDEVT_RICHTEXT_CONTENT_DELETEDwxEVT_RICHTEXT_STYLE_CHANGEDEVT_RICHTEXT_STYLE_CHANGED!wxEVT_RICHTEXT_PROPERTIES_CHANGED wxEVT_RICHTEXT_SELECTION_CHANGEDEVT_RICHTEXT_SELECTION_CHANGEDwxEVT_RICHTEXT_BUFFER_RESETEVT_RICHTEXT_BUFFER_RESET#wxEVT_RICHTEXT_FOCUS_OBJECT_CHANGED!EVT_RICHTEXT_FOCUS_OBJECT_CHANGED r   r
   <module>r      s8  	  	* + . +0 . 6 0 '4 6  7 (, %R$b"%%b"- 5:   48  7 >  "5:   9"B  $>'L  $) "2We4DE 6<  !:#D   %=&J  #(5:   $,r}}-JLkl !$\%A%A<C_C_` *"**+DE +2++,FG ,B,,-HI +2++,FG &b&&'<= )))*BC &b&&'<= #32#3#34V#W  "2""2"23T"U $4B$4$45X$Y !#32#3#34V#W   0 0 01P Q /r//0NO -R--.JK -R--.OP !1!1!12R!S ,B,,-HI $4B$4$45X$Y !r   