
    Fgp                        S r SSKJr  SSKJrJr  SSKJrJr  SSK	J
r
  SSKJrJr  SSKJr  \(       a  SSKJr  \
" 5        " S	 S
\5      5       rg)zgr.Checkbox() component.    )annotations)CallableSequence)TYPE_CHECKINGAny)document)	ComponentFormComponent)Events)Timerc                  
  ^  \ rS rSrSr\R                  \R                  \R                  /r	 SSSSSSSSSSSSSSSS.                             SU 4S jjjjr
SS jrSS	 jrSS
 jrSS jrSS jrSrU =r$ )Checkbox   z
Creates a checkbox that can be set to `True` or `False`. Can be used as an input to pass a boolean value to a function or as an output
to display a boolean value.

Demos: sentence_builder, hello_world_3
NT   )labelinfoeveryinputs
show_label	containerscale	min_widthinteractivevisibleelem_idelem_classesrenderkeyc               <   > [         TU ]  UUUUUUUU	U
UUUUUUS9  g)a	  
Parameters:
    value: if True, checked by default. If a function is provided, the function will be called each time the app loads to set the initial value of this component.
    label: the label for this component, displayed above the component if `show_label` is `True` and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component corresponds to.
    info: additional component description, appears below the label in smaller font. Supports markdown / HTML syntax.
    every: Continously calls `value` to recalculate it if `value` is a function (has no effect otherwise). Can provide a Timer whose tick resets `value`, or a float that provides the regular interval for the reset Timer.
    inputs: Components that are used as inputs to calculate `value` if `value` is a function (has no effect otherwise). `value` is recalculated any time the inputs change.
    show_label: if True, will display label.
    container: If True, will place the component in a container - providing some extra padding around the border.
    scale: relative size compared to adjacent Components. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True.
    min_width: minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.
    interactive: if True, this checkbox can be checked; if False, checking will be disabled. If not provided, this is inferred based on whether the component is used as an input or output.
    visible: If False, component will be hidden.
    elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
    elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
    render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
    key: if assigned, will be used to assume identity across a re-render. Components that have the same key across a re-render will have their value preserved.
)r   r   r   r   r   r   r   r   r   r   r   r   r   r   valueN)super__init__)selfr    r   r   r   r   r   r   r   r   r   r   r   r   r   r   	__class__s                   k/Users/admin/workspace/ai/PDFMathTranslate/myenv/lib/python3.13/site-packages/gradio/components/checkbox.pyr"   Checkbox.__init__   sE    J 	!#% 	 	
    c                
    SS0$ )Ntypeboolean r#   s    r%   api_infoCheckbox.api_infoS   s    	""r'   c                    gNTr+   r,   s    r%   example_payloadCheckbox.example_payloadV       r'   c                    gr0   r+   r,   s    r%   example_valueCheckbox.example_valueY   r3   r'   c                    U$ )zq
Parameters:
    payload: the status of the checkbox
Returns:
    Passes the status of the checkbox as a `bool`.
r+   )r#   payloads     r%   
preprocessCheckbox.preprocess\   s	     r'   c                    [        U5      $ )z
Parameters:
    value: Expects a `bool` value that is set as the status of the checkbox
Returns:
    The same `bool` value that is set as the status of the checkbox
)bool)r#   r    s     r%   postprocessCheckbox.postprocesse   s     E{r'   r+   )F)r    zbool | Callabler   
str | Noner   r?   r   zTimer | float | Noner   z7Component | Sequence[Component] | set[Component] | Noner   bool | Noner   r<   r   z
int | Noner   intr   r@   r   r<   r   r?   r   zlist[str] | str | Noner   r<   r   zint | str | None)returnzdict[str, Any])rB   r<   )r8   r@   rB   r@   )r    r@   rB   r@   )__name__
__module____qualname____firstlineno____doc__r   changeinputselectEVENTSr"   r-   r1   r5   r9   r=   __static_attributes____classcell__)r$   s   @r%   r   r      s    mmV\\6==9F "'5
 !&*JN"& #'"/3 $#5
5
 	5

 5
 $5
 H5
  5
 5
 5
 5
 !5
 5
 5
 -5
  !5
" #5
 5
n# r'   r   N)rG   
__future__r   collections.abcr   r   typingr   r   gradio_client.documentationr   gradio.components.baser	   r
   gradio.eventsr   gradio.componentsr   r   r+   r'   r%   <module>rU      s@     " . % 0 ;  ' 
Z} Z Zr'   