Tooltip#

Tooltip#

Constructor#

Properties#

Tooltip.background_color

Get or set background color using a str or RGB(A) array

Tooltip.font_size

Get or set font size

Tooltip.outline_color

Get or set outline color using a str or RGB(A) array

Tooltip.padding

Get or set the background padding in number of pixels.

Tooltip.text_color

Get or set text color using a str or RGB(A) array

Tooltip.world_object

Methods#

Tooltip.register(graphic[, appear_event, ...])

Register a Graphic to display tooltips.

Tooltip.unregister(graphic)

Unregister a Graphic to no longer display tooltips for this graphic.

Tooltip.unregister_all()

unregister all graphics