TextBox#

TextBox#

Constructor#

TextBox([font_size, text_color, ...])

Create a Textbox

Properties#

TextBox.background_color

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

TextBox.font_size

Get or set font size

TextBox.outline_color

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

TextBox.padding

Get or set the background padding in number of pixels.

TextBox.position

position of the tooltip in screen space

TextBox.text_color

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

TextBox.visible

get or set the visibility

Methods#

TextBox.clear(*args)

clear the text box and make it invisible

TextBox.display(position, info)

display at the given position in screen space