Py5Surface.set_title()

Set the Sketch window’s title.

Examples

1
2
3
4
5
def setup():
    surface = py5.get_surface()
    surface.set_title("py5 window")
    surface.set_always_on_top(True)
    surface.set_icon(py5.load_image("logo-64x64.png"))

Description

Set the Sketch window’s title. This will typically appear at the window’s title bar. The default window title is “Sketch”.

Underlying Java method: PSurface.setTitle

Syntax

set_title(title: str, /) -> None

Parameters

  • title: str - new window title

Updated on September 11, 2021 16:51:34pm UTC