
    jj~e                       d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl	m
Z
 d dlmZmZ d dlmZmZ d dlmZ d dlmZmZ d dlmZ d	d
lmZ d	dlmZ ej8                  r2d dlmZmZ d dl m!Z! d dl"m#Z# d dlm$Z$ d	dlm%Z%  ejL                  d      Z'ejP                  dk(  Z)dZ*dZ+ G d de,      Z- G d d      Z.dddZ/d Z0e1dk(  r e0        yy)    )annotationsN)suppress)displaysignals)Commandcommand_map)INPUT_DESCRIPTORS_CHANGED)StoppingContextis_mouse_event)PopUpTarget   )ExitMainLoop)SelectEventLoop)CallableIterable)Self)
BaseScreen)Widget)	EventLoop_Twin32i   )CantUseExternalLoopMainLoopc                      e Zd Zy)r   N)__name__
__module____qualname__     c/home/ubuntu/.cache/pipx/cdb5059130eadca/lib/python3.12/site-packages/urwid/event_loop/main_loop.pyr   r   >   s    r   r   c                  v   e Zd ZdZ	 	 	 	 	 	 	 d 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d!dZed"d       Zej                  d#d       Zd#dZed$d       Z	e	j                  d%d       Z	d%d	Z
d&d'd
Zd&d(dZd$dZesd)dZd*dZd+dZd Zd,dZd Zd-dZd,dZd,dZd,dZd.dZd,dZd Zd/dZd Zd0dZd1dZd,dZ d,dZ!y)2r   a  
    This is the standard main loop implementation for a single interactive
    session.

    :param widget: the topmost widget used for painting the screen, stored as
                   :attr:`widget` and may be modified. Must be a box widget.
    :type widget: widget instance

    :param palette: initial palette for screen
    :type palette: iterable of palette entries

    :param screen: screen to use, default is a new :class:`raw_display.Screen`
                   instance; stored as :attr:`screen`
    :type screen: display module screen instance

    :param handle_mouse: ``True`` to ask :attr:`.screen` to process mouse events
    :type handle_mouse: bool

    :param input_filter: a function to filter input before sending it to
                   :attr:`.widget`, called from :meth:`.input_filter`
    :type input_filter: callable

    :param unhandled_input: a function called when input is not handled by
                            :attr:`.widget`, called from :meth:`.unhandled_input`
    :type unhandled_input: callable

    :param event_loop: if :attr:`.screen` supports external an event loop it may be
                       given here, default is a new :class:`SelectEventLoop` instance;
                       stored as :attr:`.event_loop`
    :type event_loop: event loop instance

    :param pop_ups: `True` to wrap :attr:`.widget` with a :class:`PopUpTarget`
                    instance to allow any widget to open a pop-up anywhere on the screen
    :type pop_ups: boolean


    .. attribute:: screen

        The screen object this main loop uses for screen updates and reading input

    .. attribute:: event_loop

        The event loop object this main loop uses for waiting on alarms and IO
    Nc	                @   t        j                  t              j                  | j                  j                        | _        || _        || _        d| _        || _	        |st        j                  j                         }|r|j                  |       || _        d | _        || _        || _        t%        |d      s|t'        d|d      |
t)               }|| _        t%        | j                  d      r%| j*                  j,                  | j                  _        i | _        y )NFhook_event_loopzscreen object passed z& does not support external event loopssignal_handler_setter)logging	getLoggerr   getChild	__class__logger_widgethandle_mouse_pop_upspop_upsr   rawScreenregister_palettescreenscreen_size_unhandled_input_input_filterhasattrNotImplementedErrorr   
event_loopset_signal_handlerr$   _watch_pipes)	selfwidgetpaletter1   r+   input_filterunhandled_inputr7   r-   s	            r    __init__zMainLoop.__init__p   s     ''1::4>>;R;RS([['')F##G,"(37 /)v01j6L%(=fZGm&noo(*J%/4;; 78 150R0RDKK-MOr   c                    | j                   S )zm
        Property for the topmost widget used to draw the screen.
        This must be a box widget.
        )r*   r:   s    r    r;   zMainLoop.widget   s     ||r   c                    || _         | j                  r| j                   | j                  _        y | j                   | _        y N)r*   r-   _topmost_widgetoriginal_widgetr:   r;   s     r    r;   zMainLoop.widget   s.    <<37<<D  0#'<<D r   c                    t        j                  d| j                  j                   d| j                  j                   dt        d       || _        y )Nmethod `z)._set_widget` is deprecated, please use `z5.widget` property.API will be removed in version 4.0.   
stacklevel)warningswarnr(   r   DeprecationWarningr;   rF   s     r    _set_widgetzMainLoop._set_widget   sP    t~~../ 0>>223 422 	
 r   c                    | j                   S rC   )r,   rA   s    r    r-   zMainLoop.pop_ups   s    }}r   c                n    || _         |rt        | j                        | _        y | j                  | _        y rC   )r,   r   r*   rD   r:   r-   s     r    r-   zMainLoop.pop_ups   s)    #.t||#<D #'<<D r   c                    t        j                  d| j                  j                   d| j                  j                   dt        d       || _        y )NrH   z*._set_pop_ups` is deprecated, please use `z6.pop_ups` property.API will be removed in version 4.0.rI   rJ   )rL   rM   r(   r   rN   r-   rR   s     r    _set_pop_upszMainLoop._set_pop_ups   sP    t~~../ 0>>223 422 	
 r   c                      j                   j                  d|d       d fd} j                  j                  ||      S )a  
        Schedule an alarm in *sec* seconds that will call *callback* from the
        within the :meth:`run` method.

        :param sec: seconds until alarm
        :type sec: float
        :param callback: function to call with two parameters: this main loop
                         object and *user_data*
        :type callback: callable
        :param user_data: optional user data to pass to the callback
        :type user_data: object
        Setting alarm in  seconds with callback c                              y rC   r   callbackr:   	user_datas   r    cbz!MainLoop.set_alarm_in.<locals>.cb       T9%r   returnNone)r)   debugr7   alarm)r:   secrZ   r[   r\   s   ` `` r    set_alarm_inzMainLoop.set_alarm_in   sD     	-cW4KH<XY	& $$S"--r   c                     |t        j                          z
  } j                  j                  d|d       d fd} j                  j	                  ||      S )a   
        Schedule an alarm at *tm* time that will call *callback* from the
        within the :meth:`run` function. Returns a handle that may be passed to
        :meth:`remove_alarm`.

        :param tm: time to call callback e.g. ``time.time() + 5``
        :type tm: float
        :param callback: function to call with two parameters: this main loop
                         object and *user_data*
        :type callback: callable
        :param user_data: optional user data to pass to the callback
        :type user_data: object
        rV   rW   c                              y rC   r   rY   s   r    r\   z!MainLoop.set_alarm_at.<locals>.cb   r]   r   r^   )timer)   ra   r7   rb   )r:   tmrZ   r[   rc   r\   s   ` ``  r    set_alarm_atzMainLoop.set_alarm_at   sT     499;-cW4KH<XY	& $$S"--r   c                8    | j                   j                  |      S )zf
        Remove an alarm. Return ``True`` if *handle* was found, ``False``
        otherwise.
        )r7   remove_alarmr:   handles     r    rk   zMainLoop.remove_alarm   s    
 ++F33r   c                
    ddl }t        j                         \  }|j                  |j                  t        j                         dd fd} j
                  j                  |      f j                  |<   |S )a   
            Create a pipe for use by a subprocess or thread to trigger a callback
            in the process/thread running the main loop.

            :param callback: function taking one parameter to call from within the process/thread running the main loop
            :type callback: callable

            This method returns a file descriptor attached to the write end of a pipe.
            The read end of the pipe is added to the list of files :attr:`event_loop` is watching.
            When data is written to the pipe the callback function will be called
            and passed a single value containing data read from the pipe.

            This method may be used any time you want to update widgets from another thread or subprocess.

            Data may be written to the returned file descriptor with ``os.write(fd, data)``.
            Ensure that data is less than 512 bytes (or 4K on Linux)
            so that the callback will be triggered just once with the complete value of data passed in.

            If the callback returns ``False`` then the watch will be removed from :attr:`event_loop`
            and the read end of the pipe will be closed.
            You are responsible for closing the write end of the pipe with ``os.close(fd)``.
            r   Nc                     t        j                  t              }  |       du r1j                  j	                         t        j
                         y y NF)osreadPIPE_BUFFER_READ_SIZEr7   remove_watch_fileclose)datarZ   pipe_rdr:   watch_handles    r    r\   zMainLoop.watch_pipe.<locals>.cb  sC    www(=>D>U*OO55lCHHW% +r   r^   )fcntlrq   pipeF_SETFL
O_NONBLOCKr7   
watch_filer9   )r:   rZ   ry   pipe_wrr\   rw   rx   s   ``   @@r    
watch_pipezMainLoop.watch_pipe   sq    . !wwyGWKK>L& &  ??55grBL*6)@Dg&Nr   c                    	 | j                   j                  |      \  }}| j                  j	                  |      syt        j                  |       y# t        $ r Y yw xY w)a	  
            Close the read end of the pipe and remove the watch created by :meth:`watch_pipe`.

            ..note:: You are responsible for closing the write end of the pipe.

            Returns ``True`` if the watch pipe exists, ``False`` otherwise
            FT)r9   popKeyErrorr7   rt   rq   ru   )r:   write_fdrx   rw   s       r    remove_watch_pipezMainLoop.remove_watch_pipe&  s\    (,(9(9(=(=h(G%g ??44\BHHW  s   A 	AAc                |    | j                   j                  d|d|       | j                  j                  ||      S )z
        Call *callback* when *fd* has some data to read. No parameters are
        passed to callback.

        Returns a handle that may be passed to :meth:`remove_watch_file`.
        zSetting watch file descriptor z with )r)   ra   r7   r}   )r:   fdrZ   s      r    r}   zMainLoop.watch_file8  s;     	:2&xlST))"h77r   c                8    | j                   j                  |      S )zn
        Remove a watch file. Returns ``True`` if the watch file
        exists, ``False`` otherwise.
        )r7   rt   rl   s     r    rt   zMainLoop.remove_watch_fileB  s    
 0088r   c                l    t        t              5  | j                          ddd       y# 1 sw Y   yxY w)an  
        Start the main loop handling input events and updating the screen. The
        loop will continue until an :exc:`ExitMainLoop` exception is raised.

        If you would prefer to manage the event loop yourself, don't use this
        method.  Instead, call :meth:`start` before starting the event loop,
        and :meth:`stop` once it's finished.
        N)r   r   _runrA   s    r    runzMainLoop.runI  s*     l# 	IIK	 	 	s   *3c                     y)a(  
        >>> w = _refl("widget")  # _refl prints out function calls
        >>> w.render_rval = "fake canvas"  # *_rval is used for return values
        >>> scr = _refl("screen")
        >>> scr.get_input_descriptors_rval = [42]
        >>> scr.get_cols_rows_rval = (20, 10)
        >>> scr.started = True
        >>> scr._urwid_signals = {}
        >>> evl = _refl("event_loop")
        >>> evl.enter_idle_rval = 1
        >>> evl.watch_file_rval = 2
        >>> ml = MainLoop(w, [], scr, event_loop=evl)
        >>> ml.run()  # doctest:+ELLIPSIS
        screen.start()
        screen.set_mouse_tracking()
        screen.unhook_event_loop(...)
        screen.hook_event_loop(...)
        event_loop.enter_idle(<bound method MainLoop.entering_idle...>)
        event_loop.run()
        event_loop.remove_enter_idle(1)
        screen.unhook_event_loop(...)
        screen.stop()
        >>> ml.draw_screen()  # doctest:+ELLIPSIS
        screen.get_cols_rows()
        widget.render((20, 10), focus=True)
        screen.draw_screen((20, 10), 'fake canvas')
        Nr   rA   s    r    	_test_runzMainLoop._test_runU      r   c                   | j                   j                  d| j                  j                  j                  d       | j
                  j                          | j                  r| j
                  j                          t        | j
                  d      st        d| j
                  d      t        t              5  t        j                  | j
                  t        | j                          ddd       | j!                          | j                  j#                  | j$                        | _        | j                  j)                  d| j$                         t+        |       S # 1 sw Y   txY w)a  
        Sets up the main loop, hooking into the event loop where necessary.
        Starts the :attr:`screen` if it hasn't already been started.

        If you want to control starting and stopping the event loop yourself,
        you should call this method before starting, and call `stop` once the
        loop has finished.  You may also use this method as a context manager,
        which will stop the loop automatically at the end of the block:

            with main_loop.start():
                ...

        Note that some event loop implementations don't handle exceptions
        specially if you manage the event loop yourself.  In particular, the
        Twisted and asyncio loops won't stop automatically when
        :exc:`ExitMainLoop` (or anything else) is raised.
        zStarting event loop z to manage display.r#   zScreen z% doesn't support external event loopsNr   )r)   ra   r7   r(   r   r1   startr+   set_mouse_trackingr5   r   r   	NameErrorr   connect_signalr	   _reset_input_descriptors
enter_idleentering_idleidle_handlerb   r
   rA   s    r    r   zMainLoop.startr  s   & 	01J1J1S1S0VVijkKK**,t{{$56%>c&deei  	j""4;;0I4KhKhi	j 	%%'??55d6H6HI
 	a!3!34t$$	j 	js   <0EE(c                .   | j                   j                  | j                         | `t        j                  | j
                  t        | j                         | j
                  j                  | j                          | j
                  j                          y)z
        Cleans up any hooks added to the event loop.  Only call this if you're
        managing the event loop yourself, after the loop stops.
        N)
r7   remove_enter_idler   r   disconnect_signalr1   r	   r   unhook_event_loopstoprA   s    r    r   zMainLoop.stop  se     	))$*:*:;!!$++/H$JgJgh%%doo6r   c                    | j                   j                  | j                         | j                   j                  | j                  | j                         y rC   )r1   r   r7   r#   _updaterA   s    r    r   z!MainLoop._reset_input_descriptors  s4    %%doo6##DOOT\\Br   c                p   	 | j                          	 | j
                  j                          | j	                          y # t        $ rN 	 | j                          	 | j                  j	                          Y y # | j                  j	                          w xY ww xY w#  | j                  j	                           xY wrC   )r   r   _run_screen_event_loopr1   r   r7   r   rA   s    r    r   zMainLoop._run  s    	#JJL	OO! 			 # 	##++-  "  "	#	KKs,   > B 	BA5B5BBB5c                h    | j                  ||      x}r| j                  |       d|v rd| _        yyy)a  
        >>> w = _refl("widget")
        >>> w.selectable_rval = True
        >>> w.mouse_event_rval = True
        >>> scr = _refl("screen")
        >>> scr.get_cols_rows_rval = (15, 5)
        >>> evl = _refl("event_loop")
        >>> ml = MainLoop(w, [], scr, event_loop=evl)
        >>> ml._input_timeout = "old timeout"
        >>> ml._update(["y"], [121])  # doctest:+ELLIPSIS
        screen.get_cols_rows()
        widget.selectable()
        widget.keypress((15, 5), 'y')
        >>> ml._update([("mouse press", 1, 5, 4)], [])
        widget.mouse_event((15, 5), 'mouse press', 1, 5, 4, focus=True)
        >>> ml._update([], [])
        window resizeN)r=   process_inputr2   r:   keysr.   s      r    r   zMainLoop._update  sD    $ $$T3//4/t$$&#'  ' 0r   c                   | j                   j                  d| j                  d       d}	 | j                          |s?| j                  j
                  r)t        j                  | j                  j
                        }g }g }|s|r@t        d|d   t        j                         z
        }| j                  j                  |       n| j                  j                  d       | j                  j                  d      \  }}|s |r|d   t        j                         z
  dk  rn|s| j                  ||      x}r| j                  |       |rp|d   t        j                         z
  dkD  rnR|\  }}} |        | j                  j
                  r*t        j                  | j                  j
                        }nd}|rpd|v rd| _        )z
        This method is used when the screen does not support using external event loops.

        The alarms stored in the SelectEventLoop in :attr:`event_loop` are modified by this method.
        zStarting screen z event loopNTg        r   r   )r)   ra   r1   draw_screenr7   _alarmsheapqheappopmaxrg   set_input_timeouts	get_inputr=   r   r2   )r:   
next_alarmr   r.   rc   _tm
_tie_breakrZ   s           r    r   zMainLoop._run_screen_event_loop  s    	,T[[O;GH
$//"9"9"]]4??+B+BC
 DCc:a=499;#>?CKK2237KK2248 KK11$7	c
z!}tyy{/Ja/O  ((s33t3""4(qMDIIK/14,6)Z
??**!&t/F/F!GJ!%J  $&#' C r   c                     y)as  
        >>> w = _refl("widget")
        >>> scr = _refl("screen")
        >>> scr.get_cols_rows_rval = (10, 5)
        >>> scr.get_input_rval = [], []
        >>> ml = MainLoop(w, screen=scr)
        >>> def stop_now(loop, data):
        ...     raise ExitMainLoop()
        >>> handle = ml.set_alarm_in(0, stop_now)
        >>> try:
        ...     ml._run_screen_event_loop()
        ... except ExitMainLoop:
        ...     pass
        screen.get_cols_rows()
        widget.render((10, 5), focus=True)
        screen.draw_screen((10, 5), None)
        screen.set_input_timeouts(0.0)
        screen.get_input(True)
        Nr   rA   s    r    _test_run_screen_event_loopz$MainLoop._test_run_screen_event_loop  r   r   c           	        | j                   j                  d|       | j                  s| j                  j	                         | _        d}|D ]  }|dk(  r
t        |t              rH| j                  j                         r| j                  j                  | j                  |      x}r|}ngd}bt        |      rK|\  }}}}t        | j                  d      r<| j                  j                  | j                  ||||d      rd}t        |d      |rVt        |   t        j                   k(  r| j                  j#                          d}|t%        | j'                  |            z  }d}" |S )a  
        This method will pass keyboard input and mouse events to :attr:`widget`.
        This method is called automatically from the :meth:`run` method when
        there is input, but may also be called to simulate input from the user.

        *keys* is a list of input returned from :attr:`screen`'s get_input()
        or get_input_nonblocking() methods.

        Returns ``True`` if any key was handled by a widget or the
        :meth:`unhandled_input` method.
        zProcessing input: keys=Fr   Tmouse_eventfocusz' is not str | tuple[str, int, int, int])r)   ra   r2   r1   get_cols_rows
isinstancestrrD   
selectablekeypressr   r5   r   	TypeErrorr   r   REDRAW_SCREENclearboolr>   )	r:   r   something_handledkeyhandled_keyeventbuttoncolrows	            r    r   zMainLoop.process_input  s}    	3D8<=#{{88:D! $	)Co%#s#''224&*&:&:&C&CDDTDTVY&ZZ{Z) -1) $*-'vsC4//?DDXDXDdDd$$ Ee E )-%  3')P QRRs#w'<'<<KK%%'(,%%d.B.B3.G)HH%$(!I$	)L ! r   c                     y)a  
        >>> w = _refl("widget")
        >>> w.selectable_rval = True
        >>> scr = _refl("screen")
        >>> scr.get_cols_rows_rval = (10, 5)
        >>> ml = MainLoop(w, [], scr)
        >>> ml.process_input(["enter", ("mouse drag", 1, 14, 20)])
        screen.get_cols_rows()
        widget.selectable()
        widget.keypress((10, 5), 'enter')
        widget.mouse_event((10, 5), 'mouse drag', 1, 14, 20, focus=True)
        True
        Nr   rA   s    r    _test_process_inputzMainLoop._test_process_inputS  r   r   c                B    | j                   r| j                  ||      S |S )av  
        This function is passed each all the input events and raw keystroke
        values. These values are passed to the *input_filter* function
        passed to the constructor. That function must return a list of keys to
        be passed to the widgets to handle. If no *input_filter* was
        defined this implementation will return all the input events.
        )r4   r   s      r    r=   zMainLoop.input_filterb  s%     %%dC00r   c                >    | j                   r| j                  |      S y)a  
        This function is called with any input that was not handled by the
        widgets, and calls the *unhandled_input* function passed to the
        constructor. If no *unhandled_input* was defined then the input
        will be ignored.

        *input* is the keyboard or mouse input.

        The *unhandled_input* function should return ``True`` if it handled
        the input.
        F)r3   )r:   rv   s     r    r>   zMainLoop.unhandled_inputn  s!       ((..r   c                    | j                   j                  r| j                          y| j                  j	                  d| j                   d       y)z
        This method is called whenever the event loop is about to enter the
        idle state. :meth:`draw_screen` is called here to update the
        screen when anything has changed.
        zNo redrawing screen: z is not started.N)r1   startedr   r)   ra   rA   s    r    r   zMainLoop.entering_idle~  s>     ;;KK 5dkk_DTUVr   c                D   | j                   sG| j                  j                         | _         | j                  j	                  d| j                          | j
                  j                  | j                   d      }| j                  j                  | j                   |       y)a5  
        Render the widgets and paint the screen. This method is called
        automatically from :meth:`entering_idle`.

        If you modify the widgets displayed outside of handling input or
        responding to an alarm you will need to call this method yourself
        to repaint the screen.
        zScreen size recalculated: Tr   N)r2   r1   r   r)   ra   rD   renderr   )r:   canvass     r    r   zMainLoop.draw_screen  s~     #{{88:DKK :4;K;K:NOP%%,,T-=-=T,J 0 0&9r   )r   NTNNNF)r;   r   r<   zrIterable[tuple[str, str] | tuple[str, str, str] | tuple[str, str, str, str] | tuple[str, str, str, str, str, str]]r1   zBaseScreen | Noner+   r   r=   z2Callable[[list[str], list[int]], list[str]] | Noner>   z?Callable[[str | tuple[str, int, int, int]], bool | None] | Noner7   zEventLoop | Noner-   r   )r_   r   )r;   r   r_   r`   )r_   r   )r-   r   r_   r`   rC   )rc   floatrZ    Callable[[Self, _T], typing.Any]r[   r   )rh   r   rZ   r   r[   r   )rZ   zCallable[[bytes], bool | None]r_   int)r   r   r_   r   )r   r   rZ   zCallable[[], typing.Any]r^   )r_   r
   )r   	list[str]r.   	list[int]r_   r`   )r   z)Iterable[str | tuple[str, int, int, int]]r_   r   )r   r   r.   r   r_   r   )rv   zstr | tuple[str, int, int, int]r_   zbool | None)"r   r   r   __doc__r?   propertyr;   setterrO   r-   rT   rd   ri   rk   
IS_WINDOWSr   r   r}   rt   r   r   r   r   r   r   r   r   r   r   r   r=   r>   r   r   r   r   r    r   r   B   sY   +d $(!KO[_'+*P*P
*P "*P *P I*P Y*P %*P *PX   ]]0 0   ^^0 0.(.,4 %	N	$89
:)%VC"(.,(\*8!t
 	W:r   r   c                0     G fdd       |       S )aO  
    This function is used to test the main loop classes.

    >>> scr = _refl("screen")
    >>> scr.function("argument")
    screen.function('argument')
    >>> scr.callme(when="now")
    screen.callme(when='now')
    >>> scr.want_something_rval = 42
    >>> x = scr.want_something()
    screen.want_something()
    >>> x
    42

    c                  ,    e Zd ZdddZfdZ fdZy)_refl.<locals>.ReflectNc                     || _         || _        y rC   )_name_rval)r:   namervals      r    r?   z_refl.<locals>.Reflect.__init__  s    DJDJr   c           
     V   dj                  |D cg c]  }t        |       c}      }|r|r| d}|dj                  |j                         D cg c]  \  }}| d| c}}      z  }t        | j                   d| d       r
t               | j                  S c c}w c c}}w )Nz, =())joinrepritemsprintr   r   r   )r:   arglargdaargskv	loop_exits          r    __call__z_refl.<locals>.Reflect.__call__  s    99t4!d1g45Dr{DII

E1!AaU|EFFDTZZL$q)*"n$:: 5 Fs   B B%c                    |j                  d      r
t               t        | | d      r% | j                   d| t	        | | d            S  | j                   d|       S )Nr   .)endswithAttributeErrorr5   r   getattr)r:   attrReflects     r    __getattr__z"_refl.<locals>.Reflect.__getattr__  sk    }}W%$&&tvU^,$**Qtf5wtvU^7TUUdjj\4&122r   rC   r   r   )r   r   r   r?   r   r   )r   r   s   r    r   r     s    			3r   r   r   )r   r   r   r   s     `@r    _reflr     s    "3 3. 4=r   c                 ,    dd l } | j                          y )Nr   )doctesttestmod)r   s    r    _testr     s    OOr   __main__rp   r   )2
__future__r   r   r%   rq   sysrg   typingrL   
contextlibr   urwidr   r   urwid.command_mapr   r   urwid.display.commonr	   
urwid.utilr
   r   urwid.widgetr   abstract_loopr   select_loopr   TYPE_CHECKINGcollections.abcr   r   typing_extensionsr   urwid.displayr   r   r   TypeVarr   platformr   rs   __all__	Exceptionr   r   r   r   r   r   r   r    <module>r     s   . #   	 
     " 2 : 6 $ ' (	2&(#(		B \\W$
 
-	) 	U	: U	:p(V z	G r   