Py5Surface.set_always_on_top()#

Set the Sketch window to always be on top of other windows.

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 to always be on top of other windows. By default, the Sketch window can be covered by other windows. Setting this to True will keep that from happening.

Underlying Processing method: PSurface.setAlwaysOnTop

Syntax#

set_always_on_top(always: bool, /) -> None

Parameters#

  • always: bool - should the Sketch window always be on top of other windows

Updated on November 12, 2021 11:30:58am UTC