Py5Surface.set_title()#

Set the Sketch window’s title.

Examples#

1def setup():
2    surface = py5.get_surface()
3    surface.set_title("py5 window")
4    surface.set_always_on_top(True)
5    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 Processing method: PSurface.setTitle

Syntax#

set_title(title: str, /) -> None

Parameters#

  • title: str - new window title

Updated on May 02, 2022 12:07:22pm UTC