Tooltip#

Tooltip#

Constructor#

Tooltip()

Create a Textbox

Properties#

Tooltip.background_color

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

Tooltip.continuous_update

update the tooltip on every render

Tooltip.enabled

enable or disable the tooltip

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.position

position of the tooltip in screen space

Tooltip.text_color

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

Tooltip.visible

get or set the visibility

Methods#

Tooltip.clear(*args)

clear the text box and make it invisible

Tooltip.display(position, info)

display at the given position in screen space