def add_static_shadow(element, dict_args=None):
    """Adds a static shadow to <element>. This means that the shadow is always
    the same, regardless of the state of the element.
    """
    shadowel = StaticShadow(element)
    if dict_args:
        for key, value in iter(dict_args.items()):
            setattr(shadowel, key, value)
    shadowel.finish()
def add_static_shadow(element, dict_args=None):
    """Adds a static shadow to <element>. This means that the shadow is always
    the same, regardless of the state of the element.
    """
    shadowel = StaticShadow(element)
    if dict_args:
        for key, value in iter(dict_args.items()):
            setattr(shadowel, key, value)
    shadowel.finish()
Exemple #3
0
def add_static_shadow(element, dict_args=None):
    """Adds a static shadow to <element>. This means that the shadow is always
    the same, regardless of the state of the element.

    <radius> : fadeout distance of the shadow (1 : sharp).
    <black> : gray level of the element's image under which the shadow occurs.
    <max_alpha> : maximum alpha value of the shadow.
    <capture_state> : state used for capturing the image to produce shadow.
    """
    shadowel = StaticShadow(element)
    if dict_args:
        for key, value in iter(dict_args.items()):
            setattr(shadowel, key, value)
    shadowel.finish()
Exemple #4
0
def add_static_shadow(element, dict_args=None):
    """Adds a static shadow to <element>. This means that the shadow is always
    the same, regardless of the state of the element.

    <radius> : fadeout distance of the shadow (1 : sharp).
    <black> : gray level of the element's image under which the shadow occurs.
    <max_alpha> : maximum alpha value of the shadow.
    <capture_state> : state used for capturing the image to produce shadow.
    """
    shadowel = StaticShadow(element)
    if dict_args:
        for key, value in iter(dict_args.items()):
            setattr(shadowel, key, value)
    shadowel.finish()
def add_button_shadow(element, altitude=None, dict_args=None):
    altitude = style.SHADOW_ALTITUDE if altitude is None else altitude
    shadow = StaticShadow(element)
    shadow.target_altitude = altitude
    shadow.vertical = False
    shadow.sun_angle2 = 45.
    shadow.alpha_factor = 0.5
    if dict_args:
        for key, value in (dict_args.items()):
            setattr(shadowel, key, value)
    shadow.finish()
Exemple #6
0
def add_button_shadow(element, altitude=None, dict_args=None):
    altitude = style.SHADOW_ALTITUDE if altitude is None else altitude
    shadow = StaticShadow(element)
    shadow.target_altitude = altitude
    shadow.vertical = False
    shadow.sun_angle2 = 45.
    shadow.alpha_factor = 0.5
    if dict_args:
        for key, value in (dict_args.items()):
            setattr(shadowel, key, value)
    shadow.finish()