a
    Df                     @   sd  d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z
mZmZmZmZmZ ddlmZ ddlmZ ddlmZmZmZmZmZmZmZ ddl m!Z! G d	d
 d
eZ"G dd deZ#G dd de!Z$G dd de!Z%G dd de!Z&G dd de!Z'G dd deZ(G dd deZ)G dd deZ*G dd deZG dd deZG dd  d eZG d!d" d"eZd#S )$z
Custom bokeh Widget models.
    )
ButtonType)AnyBoolEitherEnumFloatInstanceIntListNullableOverrideStringTuple)Tooltip)Icon)ButtonCheckboxButtonGroupInputWidgetRadioButtonGroupSelectTextAreaInputWidget   )HTMLBoxc                   @   s   e Zd ZdZedddZedddZedddZedddZed	d
dZ	edddZ
edddZedddddZedddZeddZeddZdS )PlayerzQ
    The Player widget provides controls to play through a number of frames.
    r   z Lower bound of the Player sliderhelp
   z Upper bound of the Player sliderzCurrent value of the player appz)Current throttled value of the player appr   z)Number of steps to advance the player by.  zInterval between updatesze
        Current play direction of the Player (-1: playing in reverse,
        0: paused, 1: playing)onceZreflectloopdefaultTz9Whether the loop controls
        radio buttons are showni     N)__name__
__module____qualname____doc__r	   startendvalueZvalue_throttledstepinterval	directionr   Zloop_policyr   Zshow_loop_controlsr   widthheight r0   r0   a/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/panel/models/widgets.pyr      s   
r   c                   @   sN   e Zd ZdZeeg ddZeeee	eeddZ
edddZeeddZd	S )
SingleSelectz Single-select widget.

    %
    List of options to disable.
    r"   r   a  
    Available selection options. Options may be provided either as a list of
    possible string values, or as a list of tuples, each of the form
    ``(value, label)``. In the latter case, the visible widget text for each
    value will be corresponding given label.
    r      z
    The number of visible options in the dropdown list. (This uses the
    ``select`` HTML element's ``size`` attribute. Some browsers might not
    show less than 3 options.)
    zInitial or selected value.N)r$   r%   r&   r'   r
   r   disabled_optionsr   r   r   optionsr	   sizer   r*   r0   r0   r0   r1   r2   3   s
   r2   c                   @   sj   e Zd ZedddZedddZedddZedddZedddZ	e
d	d
dZeddZeeddZdS )AudioFzWhether the audio should loopr   zWhether the audio is pausedzWhether the audio is mutedz*Whether the audio is playing automaticallyr   z5
        The current time stamp of the audio playbackr#   J
        The frequency at which the time value is updated in milliseconds.Encoded file datazThe volume of the audio player.N)r$   r%   r&   r   r    pausedmutedautoplayr   timer	   throttler   r*   r   volumer0   r0   r0   r1   r9   L   s   
r9   c                   @   sh   e Zd ZedddZedddZedddZedddZedddZ	e
d	d
dZeddZe
ddZdS )VideoFzWhether the video should loopr   Whether the video is pausedzWhether the video is mutedz*Whether the video is playing automaticallyr   z5
        The current time stamp of the video playbackr#   r:   r;   zThe volume of the video player.N)r$   r%   r&   r   r    r<   r=   r>   r   r?   r	   r@   r   r*   rA   r0   r0   r0   r1   rB   a   s   
rB   c                   @   s\   e Zd ZeddddZedddZedddZee	ddZ
ed	dZed
dZeddZdS )VideoStreamZpngZjpegr!   FrC   r   z8On change generate a snapshot of the current video framezq
        The timeout between snapshots (if None snapshot only generated
        when snapshot property is changedzSnapshot Data   i@  N)r$   r%   r&   r   formatr   r<   Zsnapshotr   r	   timeoutr   r*   r   r/   r.   r0   r0   r0   r1   rD   v   s   

rD   c                   @   sR   e Zd ZedddZedddddd	d
ddd	ZedddZe	eddZ
eeZdS )ProgressTzWhether to animate the barr   ZprimaryZ	secondarysuccessinfoZdangerwarninglightZdarkr!   d   zMaximum valuezCurrent valueN)r$   r%   r&   r   activer   Z	bar_colorr	   maxr   r*   r
   r   cssr0   r0   r0   r1   rH      s   

rH   c                   @   s   e Zd ZedddZeeddZedddZ	e
ddZedddZeeed	dZe
d
ddZe
ddZedddZed
dZdS )FileDownloadFzWhether to download on clickr   z7
    A style for the button, signifying it's role.
    r   zM
    A private property that used to trigger ``on_click`` event handler.
    zEncoded URI data.z!Whether the data is pre-embedded.z
    An optional image appearing to the left of button's text. An instance of
    :class:`~bokeh.models.Icon` (such as :class:`~bokeh.models.BuiltinIcon`,
    :class:`~bokeh.models.SVGIcon`, or :class:`~bokeh.models.TablerIcon`).`
     z)The text label for the button to display.zFilename to use on downloadz:
    A private property to create and click the link.
    r!   N)r$   r%   r&   r   autor   r   Zbutton_typer	   Zclicksr   dataembedr   r   r   ZiconlabelfilenameZ
_transfersr   titler0   r0   r0   r1   rQ      s   

rQ   c                   @   s(   e Zd ZdZeeg ddZeddZdS )CustomSelectzq Custom widget that extends the base Bokeh Select
    by adding a parameter to disable one or more options.

    r3   r4   r   r!   N)	r$   r%   r&   r'   r
   r   r6   r	   r8   r0   r0   r0   r1   rY      s   rY   c                   @   s"   e Zd ZeeedddddZdS )TooltipIconz	Help textright)contentpositionzThe tooltip held by the iconr4   N)r$   r%   r&   r   r   descriptionr0   r0   r0   r1   rZ      s
   
rZ   c                   @   s&   e Zd ZedddZee ddZdS )r   Fzl
        Whether the text area should automatically grow vertically to
        accommodate the current text.r4   z[
        Maximum number of rows the input area can grow to if auto_grow
        is enabled.r   N)r$   r%   r&   r   Z	auto_growr   r	   Zmax_rowsr0   r0   r0   r1   r      s
   r   c                   @   s(   e Zd ZeeeddZedddZdS )r   
    A tooltip with plain text or rich HTML contents, providing general help or
    description of a widget's or component's function.
    r   r   |
    Delay (in milliseconds) to display the tooltip after the cursor has
    hovered over the Button, default is 500ms.
    N	r$   r%   r&   r   r   r   Ztooltipr	   Ztooltip_delayr0   r0   r0   r1   r      s   r   c                   @   s(   e Zd ZeeeddZedddZdS )r   r_   r   r   r`   Nra   r0   r0   r0   r1   r      s   r   c                   @   s(   e Zd ZeeeddZedddZdS )r   r_   r   r   r`   Nra   r0   r0   r0   r1   r      s   r   N)+r'   Zbokeh.core.enumsr   Zbokeh.core.propertiesr   r   r   r   r   r   r	   r
   r   r   r   r   Zbokeh.models.uir   Zbokeh.models.ui.iconsr   Zbokeh.models.widgetsr   ZbkButtonr   ZbkCheckboxButtonGroupr   r   ZbkRadioButtonGroupr   r   ZBkTextAreaInputr   Zlayoutr   r   r2   r9   rB   rD   rH   rQ   rY   rZ   r0   r0   r0   r1   <module>   s&   8$!