ó
/¾I]c           @   s“   d  Z  d d l m Z m Z m Z m Z d d l m Z m Z d d l	 m
 Z
 d d d	 g Z e d
 e f d „  ƒ  Yƒ Z d e f d „  ƒ  YZ d S(   s   Contains the Layout classiÿÿÿÿ(   t   Unicodet   Instancet   CaselessStrEnumt   validatei   (   t   Widgett   registeri   (   t    __jupyter_widgets_base_version__t   inheritt   initialt   unsett   Layoutc           B   s‰  e  Z d  Z e d ƒ j d e ƒ Z e d ƒ j d e ƒ Z e e ƒ j d e ƒ Z	 e d ƒ j d e ƒ Z
 e d d d d d	 d
 d g e d e d d ƒj d e ƒ Z e d d d d d g e d e d d ƒj d e ƒ Z e d d d d d d g e d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e d d d d d	 g e d e d d ƒj d e ƒ Z e d d d g e d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d ƒj d e ƒ Z e dE d e d d  ƒj d e ƒ Z e dE d e d d! ƒj d e ƒ Z e d" d# d$ d g e d e d d% ƒj d e ƒ Z  e d" d# d$ d g e d e d d& ƒj d e ƒ Z! e dE d e d d' ƒj d e ƒ Z" e dE d e d d( ƒj d e ƒ Z# e dE d e d d) ƒj d e ƒ Z$ e dE d e d d* ƒj d e ƒ Z% e d" d# g e d e d d+ ƒj d e ƒ Z& e dE d e d d, ƒj d e ƒ Z' e d- d. d/ d0 d1 g d e d d2 ƒj d e ƒ Z( e dE d e d d3 ƒj d e ƒ Z) e dE d e d d4 ƒj d e ƒ Z* e d5 d6 d7 d8 g e d e d d9 ƒj d e ƒ Z+ e dE d e d d: ƒj d e ƒ Z, e dE d e d d; ƒj d e ƒ Z- e dE d e d d< ƒj d e ƒ Z. e dE d e d d= ƒj d e ƒ Z/ e dE d e d d> ƒj d e ƒ Z0 e dE d e d d? ƒj d e ƒ Z1 e dE d e d d@ ƒj d e ƒ Z2 e dE d e d dA ƒj d e ƒ Z3 e4 dB dC ƒ dD „  ƒ Z5 RS(F   sÿ  Layout specification

    Defines a layout that can be expressed using CSS.  Supports a subset of
    https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

    When a property is also accessible via a shorthand property, we only
    expose the shorthand.

    For example:
    - ``flex-grow``, ``flex-shrink`` and ``flex-basis`` are bound to ``flex``.
    - ``flex-wrap`` and ``flex-direction`` are bound to ``flex-flow``.
    - ``margin-[top/bottom/left/right]`` values are bound to ``margin``, etc.
    t
   LayoutViewt   syncs   @jupyter-widgets/baset   LayoutModels
   flex-starts   flex-endt   centers   space-betweens   space-arounds   space-evenlyt   stretcht
   allow_nonet   helps    The align-content CSS attribute.t   baselines   The align-items CSS attribute.t   autos   The align-self CSS attribute.s   The bottom CSS attribute.s   The border CSS attribute.s   The display CSS attribute.s   The flex CSS attribute.s   The flex-flow CSS attribute.s   The height CSS attribute.s"   The justify-content CSS attribute.s    The justify-items CSS attribute.s   The left CSS attribute.s   The margin CSS attribute.s   The max-height CSS attribute.s   The max-width CSS attribute.s   The min-height CSS attribute.s   The min-width CSS attribute.s   The overflow CSS attribute.t   visiblet   hiddent   scrolls*   The overflow-x CSS attribute (deprecated).s*   The overflow-y CSS attribute (deprecated).s   The order CSS attribute.s   The padding CSS attribute.s   The right CSS attribute.s   The top CSS attribute.s   The visibility CSS attribute.s   The width CSS attribute.t   containt   covert   fills
   scale-downt   nones   The object-fit CSS attribute.s"   The object-position CSS attribute.s$   The grid-auto-columns CSS attribute.t   columnt   rows	   row denses   column denses!   The grid-auto-flow CSS attribute.s!   The grid-auto-rows CSS attribute.s   The grid-gap CSS attribute.s%   The grid-template-rows CSS attribute.s(   The grid-template-columns CSS attribute.s&   The grid-template-areas CSS attribute.s   The grid-row CSS attribute.s   The grid-column CSS attribute.s   The grid-area CSS attribute.t
   overflow_xt
   overflow_yc         C   s5   | j  d  k	 r. d d  l } | j d t ƒ n  | j  S(   Niÿÿÿÿsœ   Layout properties overflow_x and overflow_y have been deprecated and will be dropped in a future release. Please use the overflow shorthand property instead(   t   valuet   Nonet   warningst   warnt   DeprecationWarning(   t   selft   proposalR!   (    (    s?   lib/python2.7/site-packages/ipywidgets/widgets/widget_layout.pyt   _validate_overflowsP   s    N(6   t   __name__t
   __module__t   __doc__R    t   tagt   Truet
   _view_namet   _view_moduleR   t   _view_module_versiont   _model_nameR   t   CSS_PROPERTIESt   align_contentt   align_itemst
   align_selfR    t   bottomt   bordert   displayt   flext	   flex_flowt   heightt   justify_contentt   justify_itemst   leftt   margint
   max_heightt	   max_widtht
   min_heightt	   min_widtht   overflowR   R   t   ordert   paddingt   rightt   topt
   visibilityt   widtht
   object_fitt   object_positiont   grid_auto_columnst   grid_auto_flowt   grid_auto_rowst   grid_gapt   grid_template_rowst   grid_template_columnst   grid_template_areast   grid_rowt   grid_columnt	   grid_areaR   R&   (    (    (    s?   lib/python2.7/site-packages/ipywidgets/widgets/widget_layout.pyR
      sb   .+.$$$$$$+$$$$$$$44$$$$.$3$$4$$$$$$$$t   LayoutTraitTypec           B   s   e  Z e Z d  „  Z RS(   c         C   sN   t  | t ƒ r1 t t |  ƒ j | |  j |   ƒ St t |  ƒ j | | ƒ Sd  S(   N(   t
   isinstancet   dictt   superRU   R   t   klass(   R$   t   objR   (    (    s?   lib/python2.7/site-packages/ipywidgets/widgets/widget_layout.pyR   \   s    "(   R'   R(   R
   RY   R   (    (    (    s?   lib/python2.7/site-packages/ipywidgets/widgets/widget_layout.pyRU   X   s   N(   R)   t	   traitletsR    R   R   R   t   widgetR   R   t   _versionR   R0   R
   RU   (    (    (    s?   lib/python2.7/site-packages/ipywidgets/widgets/widget_layout.pyt   <module>   s   "K