tktooltip package

Submodules

tktooltip.tooltip module

Module defining the ToolTip widget

class tktooltip.tooltip.Binding(widget, binding_name, functor)

Bases: object

unbind()
Return type:

None

class tktooltip.tooltip.ToolTip(widget, msg, delay=0.0, follow=True, refresh=1.0, x_offset=10, y_offset=10, parent_kwargs=None, **message_kwargs)

Bases: Toplevel

Creates a ToolTip (pop-up) widget for tkinter

DEFAULT_MESSAGE_KWARGS = {'aspect': 1000}
DEFAULT_PARENT_KWARGS = {'bg': 'black', 'padx': 1, 'pady': 1}
S_TO_MS = 1000
destroy()

Destroy the ToolTip and unbind all the bindings.

Return type:

None

on_enter(event)

Processes motion within the widget including entering and moving.

Return type:

None

on_leave(event=None)

Hides the ToolTip.

Return type:

None

class tktooltip.tooltip.ToolTipStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

INSIDE = 2
OUTSIDE = 1
VISIBLE = 3

Module contents

TkToolTip

Provides a tooltip (pop-up) widget for tkinter

Features:

  • Normal tooltips

  • Functions tooltips

  • Delayed tooltips

  • Tracking tooltips

  • Theme-aware tooltips and fully customisable

class tktooltip.ToolTip(widget, msg, delay=0.0, follow=True, refresh=1.0, x_offset=10, y_offset=10, parent_kwargs=None, **message_kwargs)

Bases: Toplevel

Creates a ToolTip (pop-up) widget for tkinter

DEFAULT_MESSAGE_KWARGS = {'aspect': 1000}
DEFAULT_PARENT_KWARGS = {'bg': 'black', 'padx': 1, 'pady': 1}
S_TO_MS = 1000
destroy()

Destroy the ToolTip and unbind all the bindings.

Return type:

None

message_kwargs: dict
on_enter(event)

Processes motion within the widget including entering and moving.

Return type:

None

on_leave(event=None)

Hides the ToolTip.

Return type:

None

class tktooltip.ToolTipStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

INSIDE = 2
OUTSIDE = 1
VISIBLE = 3