Package dtk :: Package ui :: Module theme :: Class DynamicShadowColor

Class DynamicShadowColor

source code


Dynamic shadow color.

Instance Methods
 
__init__(self, color_info)
Initialize DynamicShadowColor class.
source code
 
update(self, color_info)
Update color with given value.
source code
 
get_color_info(self)
Get color information.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, color_info)
(Constructor)

source code 

Initialize DynamicShadowColor class.

Parameters:
  • color_info - Color information, format as:
    >>> [(color_position_1, (hex_color_1, color_alpha_1),
    >>>  (color_position_2, (hex_color_2, color_alpha_2),
    >>>  (color_position_3, (hex_color_3, color_alpha_3)]
Overrides: object.__init__

update(self, color_info)

source code 

Update color with given value.

Parameters:
  • color_info - Color information, format as:
    >>> [(color_position_1, (hex_color_1, color_alpha_1),
    >>>  (color_position_2, (hex_color_2, color_alpha_2),
    >>>  (color_position_3, (hex_color_3, color_alpha_3)]

get_color_info(self)

source code 

Get color information.

Returns:
Return color information, format as:
>>> [(color_position_1, (hex_color_1, color_alpha_1),
>>>  (color_position_2, (hex_color_2, color_alpha_2),
>>>  (color_position_3, (hex_color_3, color_alpha_3)]