ó
mÜJ]c           @` sí   d  Z  d d l m Z m Z m Z m Z d d l Z e j e ƒ Z	 d d l
 m Z d d l m Z m Z m Z m Z d d l m Z d Z e d e f d „  ƒ  Yƒ Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   uO   Various kinds of markup (static content) widgets.

.. warning::
    The explicit purpose of these Bokeh Models is to embed *raw HTML text* for
    a browser to execute. If any portion of the text is derived from untrusted
    user inputs, then you must take appropriate care to sanitize the user input
    prior to passing to Bokeh.

i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsNi   (   t   abstract(   t   Anyt   Boolt   Stringt   Dicti   (   t   Widgetu   Divu   Markupu	   Paragraphu   PreTextt   Markupc           B` s>   e  Z d  Z e d d d d ƒ Z e e e d i  d d ƒZ RS(   u…    Base class for Bokeh models that represent HTML markup elements.

    Markups include e.g., ``<div>``, ``<p>``, and ``<pre>``.

    t   defaultu    t   helpu  
    The text or HTML contents of the widget.

    .. note::
        If the HTML content contains elements which size depends on
        on external, asynchronously loaded resources, the size of
        the widget may be computed incorrectly. This is in particular
        an issue with images (``<img>``). To remedy this problem, one
        either has to set explicit dimensions using CSS properties,
        HTML attributes or model's ``width`` and ``height`` properties,
        or inline images' contents using data URIs.
    uL   
    Raw CSS style declaration. Note this may be web browser dependent.
    (   t   __name__t
   __module__t   __doc__R   t   textR   R   t   style(    (    (    s;   lib/python2.7/site-packages/bokeh/models/widgets/markups.pyR
   6   s
   	t	   Paragraphc           B` s   e  Z d  Z d Z RS(   ua    A block (paragraph) of text.

    This Bokeh model corresponds to an HTML ``<p>`` element.

    u?   sphinx/source/docs/user_guide/examples/interaction_paragraph.py(   R   R   R   t   __example__(    (    (    s;   lib/python2.7/site-packages/bokeh/models/widgets/markups.pyR   S   s   t   Divc           B` s&   e  Z d  Z d Z e e d d ƒZ RS(   u]    A block (div) of text.

    This Bokeh model corresponds to an HTML ``<div>`` element.

    u9   sphinx/source/docs/user_guide/examples/interaction_div.pyR   u    
    Whether the contents should be rendered as raw text or as interpreted HTML.
    The default value is ``False``, meaning contents are rendered as HTML.
    (   R   R   R   R   R   t   Falset   render_as_text(    (    (    s;   lib/python2.7/site-packages/bokeh/models/widgets/markups.pyR   \   s   	t   PreTextc           B` s   e  Z d  Z d Z RS(   uq    A block (paragraph) of pre-formatted text.

    This Bokeh model corresponds to an HTML ``<pre>`` element.

    u=   sphinx/source/docs/user_guide/examples/interaction_pretext.py(   R   R   R   R   (    (    (    s;   lib/python2.7/site-packages/bokeh/models/widgets/markups.pyR   j   s   (   u   Divu   Markupu	   Paragraphu   PreText(   R   t
   __future__R    R   R   R   t   loggingt	   getLoggerR   t   logt   core.has_propsR   t   core.propertiesR   R   R   R   t   widgetR	   t   __all__R
   R   R   R   (    (    (    s;   lib/python2.7/site-packages/bokeh/models/widgets/markups.pyt   <module>   s   ""   	