window_title()#

Set the Sketch window’s title.

Examples#

1def setup():
2    py5.size(200, 200)
3    py5.window_title("py5 window")

Description#

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

This method provides the same functionality as Py5Surface.set_title() but without the need to interact directly with the Py5Surface object.

Underlying Processing method: windowTitle

Syntax#

window_title(title: str, /) -> None

Parameters#

  • title: str - new window title

Updated on April 27, 2022 11:19:15am UTC