
    jj                    N    d dl mZ d dlmZ ddlmZmZ ddlmZ  G d de      Z	y)	    )annotations)SolidCanvas   )SHADE_SYMBOLSSizing)Widgetc                  z     e Zd ZdZdZdZ eej                  g      Z	e
Zdd fdZd	 fdZ	 d
	 	 	 	 	 ddZ xZS )	SolidFillzA
    A box widget that fills an area with a single character
    FTc                0    t         |           || _        y)z
        :param fill_char: character to fill area with
        :type fill_char: bytes or unicode

        >>> SolidFill("8")
        <SolidFill box widget '8'>
        N)super__init__	fill_char)selfr   	__class__s     `/home/ubuntu/.cache/pipx/cdb5059130eadca/lib/python3.12/site-packages/urwid/widget/solid_fill.pyr   zSolidFill.__init__   s     	"    c                N    g t         |          t        | j                        S )N)r   _repr_wordsreprr   )r   r   s    r   r   zSolidFill._repr_words   s$    =$&=T^^(<==r   c                :    |\  }}t        | j                  ||      S )z
        Render the Fill as a canvas and return it.

        >>> SolidFill().render((4, 2)).text  # ... = b in Python 3
        [...'    ', ...'    ']
        >>> SolidFill("#").render((5, 3)).text
        [...'#####', ...'#####', ...'#####']
        )r   r   )r   sizefocusmaxcolmaxrows        r   renderzSolidFill.render"   s      4>>66::r   ) )r   strreturnNone)r   z	list[str])F)r   ztuple[int, int]r   boolr   r   )__name__
__module____qualname____doc___selectableignore_focus	frozensetr   BOX_sizingr   Symbolsr   r   r   __classcell__)r   s   @r   r
   r
   	   sY     KL%GG	#> ;; ; 
	;r   r
   N)

__future__r   urwid.canvasr   	constantsr   r   widgetr   r
    r   r   <module>r1      s    " $ , '; ';r   