Set the Sketch window to always be on top of other windows.
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"))
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 Java method: PSurface.setAlwaysOnTop
set_always_on_top(always: bool, /) -> None
always: bool - should the Sketch window always be on top of other windows
Updated on September 11, 2021 16:51:34pm UTC