Py5Surface.set_title()#

Set the Sketch window’s title.

Examples#

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”.

This method provides the same functionality as window_title().

Underlying Processing method: PSurface.setTitle

Signatures#

set_title(
    title: str,  # new window title
    /,
) -> None

Updated on September 01, 2022 16:36:02pm UTC