__init__ constructor

On this page

init

Initializes a new instance of Character.

def __init__(self):
    ...

init

Initializes a new Character instance.

def __init__(self, character, x, y, width, height):
    ...
Parameter Type Description
character str The character.
x float The X coordinate of the highest left point on the page layout where the rectangle that contains character begins.
y float The Y coordinate of the highest left point on the page layout where the rectangle that contains character begins.
width float The width of the rectangle which contains single character (in pixels).
height float The height of the rectangle which contains single character (in pixels).

See Also

On this page