KekLib.IpyLabelUtils

KekLib.IpyLabelUtils#

KekLib.IpyLabelUtils.py

inject_label_color_css()#

This function adds CSS styles for different label colors (green, red, yellow, gray) to be used with ipywidgets.Label.

Parameters:#

None

Returns:#

None

set_label_color(label, color)#

Set the color of an ipywidgets.Label by adding/removing CSS classes.

Parameters:#

labelipywidgets.Label

The label widget to modify.

colorstr

The color to set. Must be one of: “green”, “red”, “yellow”, “gray”, “blue”.

Returns:#

None