LogoWidget¶
-
class
menpowidgets.tools.
LogoWidget
(style='minimal')[source]¶ Bases:
FlexBox
Creates a widget with Menpo’s logo image. The widget stores the image in
self.image
using ipywidgets.Image. To set the styling of this widget please refer to thestyle()
method.Parameters: style ( {'minimal', 'danger', 'info', 'warning', 'success'}
, optional) – Defines the styling of the logo widget, i.e. the colour around the logo image.-
style
(box_style=None, border_visible=False, border_colour='black', border_style='solid', border_width=1, border_radius=0, padding=0, margin=0, image_width='50px')[source]¶ Function that defines the styling of the widget.
Parameters: - box_style (str or
None
(see below), optional) –Possible widget style options:
'success', 'info', 'warning', 'danger', '', None
- border_visible (bool, optional) – Defines whether to draw the border line around the widget.
- border_colour (str, optional) – The colour of the border around the widget.
- border_style (str, optional) – The line style of the border around the widget.
- border_width (float, optional) – The line width of the border around the widget.
- border_radius (float, optional) – The radius of the border around the widget.
- padding (float, optional) – The padding around the widget.
- margin (float, optional) – The margin around the widget.
- image_width (str, optional) – The width of the image object
- box_style (str or
-