__init__(self,
monitor_widget,
text_font=DEFAULT_FONT,
text_size=18,
offset_x=0,
offset_y=0,
text_color=ui_theme.get_color("osd_tooltip_text"),
border_color=ui_theme.get_color("osd_tooltip_border"),
border_radious=1)
(Constructor)
| source code
|
Initialize OSDTooltip class.
- Parameters:
monitor_widget - Widget to monitor event.
text_font - Text font, default is DEFAULT_FONT.
text_size - Text size, default is 18.
offset_x - Offset X coordinate relative to monitor widget.
offset_y - Offset Y coordinate relative to monitor widget.
text_color - Text color.
border_color - Border color.
border_radious - Border radious.
|