Py5Surface.set_title()
Contents
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 Processing method: PSurface.setTitle
Syntax¶
set_title(title: str, /) -> None