demosys.context.pyqt.Window

demosys.context.pyqt.Window

Window using PyQt5.

This is the recommended window if you want your project to work on most platforms out of the box without any binary dependecies.

demosys.context.pyqt.Keys

Namespace creating pyqt specific key constants

Methods

Window.__init__()

Creates a pyqt application and window overriding the built in event loop. Sets up keyboard and mouse events and creates a monderngl.Context.

Window.keyPressEvent(event)

Pyqt specific key press callback function. Translates and forwards events to keyboard_event().

Window.keyReleaseEvent(event)

Pyqt specific key release callback function. Translates and forwards events to keyboard_event().

Window.mouseMoveEvent(event)

Pyqt specific mouse event callback Translates and forwards events to cursor_event().

Window.swap_buffers()

Swaps buffers, increments the frame counter and pulls events

Window.use()

Make the window’s framebuffer the current render target

Window.should_close() → bool

Checks if the internal close state is set

Window.close()

Set the internal close state

Window.terminate()

Quits the running qt application

Attributes