Skip to content

WindowEventType

Inherits: Enum

Type of native desktop window event.

Values are reported in WindowEvent.type and delivered by Window.on_event. Event availability depends on the operating system and underlying window manager.

Properties

  • BLUR

    The window lost focus.

  • CLOSE

    The OS requested the window to close.

  • ENTER_FULL_SCREEN

    The window entered full-screen mode.

  • FOCUS

    The window became focused.

  • HIDE

    The window became hidden.

  • LEAVE_FULL_SCREEN

    The window exited full-screen mode.

  • MAXIMIZE

    The window was maximized.

  • MINIMIZE

    The window was minimized.

  • MOVE

    The window position is changing.

  • MOVED

    The window position changed.

  • RESIZE

    The window size is changing.

  • RESIZED

    The window size changed.

  • RESTORE

    The window was restored from a minimized state.

  • SHOW

    The window became visible.

  • UNMAXIMIZE

    The window exited maximized state.

Properties#

BLUR = 'blur' class-attribute instance-attribute #

The window lost focus.

CLOSE = 'close' class-attribute instance-attribute #

The OS requested the window to close.

ENTER_FULL_SCREEN = 'enter-full-screen' class-attribute instance-attribute #

The window entered full-screen mode.

FOCUS = 'focus' class-attribute instance-attribute #

The window became focused.

HIDE = 'hide' class-attribute instance-attribute #

The window became hidden.

LEAVE_FULL_SCREEN = 'leave-full-screen' class-attribute instance-attribute #

The window exited full-screen mode.

MAXIMIZE = 'maximize' class-attribute instance-attribute #

The window was maximized.

MINIMIZE = 'minimize' class-attribute instance-attribute #

The window was minimized.

MOVE = 'move' class-attribute instance-attribute #

The window position is changing.

MOVED = 'moved' class-attribute instance-attribute #

The window position changed.

RESIZE = 'resize' class-attribute instance-attribute #

The window size is changing.

RESIZED = 'resized' class-attribute instance-attribute #

The window size changed.

RESTORE = 'restore' class-attribute instance-attribute #

The window was restored from a minimized state.

SHOW = 'show' class-attribute instance-attribute #

The window became visible.

UNMAXIMIZE = 'unmaximize' class-attribute instance-attribute #

The window exited maximized state.