tooltips¶
Tooltips
Classes
|
It creates a tooltip for a given canvas tag or id as the mouse is above it. |
|
- class tooltips.CanvasTooltip(root: ChessHeatMapApp, canvas: Canvas, tag_or_id: int, *, bg_color: str = '#FFFFEA', pad: Tuple[int, int, int, int] = (5, 3, 5, 3), text: str = 'canvas info', waittime: int = 150, wraplength: int = 500, font_size: int = 20)¶
Bases:
object
It creates a tooltip for a given canvas tag or id as the mouse is above it.
This class has been derived from the original Tooltip class I updated and posted back to StackOverflow at the following link:
Alberto Vassena on 2016.12.10.
- bg_color: str¶
- canvas: Canvas¶
- font_size: int¶
- hide() None ¶
hide self
- id_: Optional[str]¶
- onEnter(_: Optional[Event] = None) None ¶
- Parameters:
- _tkinter.Event
- onLeave(_: Optional[Event] = None) None ¶
- Parameters:
- _tkinter.Event
- pad: Tuple[int, int, int, int]¶
- root: ChessHeatMapApp¶
- schedule() None ¶
schedule self
- show(_: Optional[Event] = None) None ¶
- Parameters:
- _tkinter.Event
- text: str¶
- tw_: Optional[Toplevel]¶
- unschedule() None ¶
unschedule self
- waittime: int¶
- wraplength: int¶