pyglet
Programming Guide
Installation
Writing a pyglet application
Windowing
Keyboard input
Mouse input
Controller & Joystick input
Images and Sprites
Displaying text
Playing Sound and Video
Drawing Shapes
3D Models and Scenes
Application resources
Shaders and Rendering
Event dispatching & handling
Simple Widgets & GUI
Keeping track of time
Creating a rendering context
The OpenGL interface
OpenGL ES
Matrix and Vector Math
The application event loop
In-depth game example
Runtime Options
Debugging tools
Migrating from pyglet 2.1 to pyglet 3.0
Pyodide Integration
API Reference
pyglet
pyglet.app
pyglet.clock
pyglet.display
pyglet.customtypes
pyglet.enums
pyglet.event
pyglet.font
pyglet.graphics
pyglet.gui
pyglet.image
pyglet.info
pyglet.input
pyglet.math
pyglet.media
pyglet.resource
pyglet.sprite
pyglet.shapes
pyglet.text
pyglet.window
External Resources
Related Documentation
Projects using pyglet
Development Guide
Contributing
Development environment
Documentation and Type Hints
Testing pyglet
Making a pyglet release
OpenGL Interface Implementation
ctypes Wrapper Generation
wraptypes
Media manual
Media logging manual
pyglet
Index
Index – O
o (Mat4 attribute)
OBLIQUE (Style attribute)
offset (AttributeView attribute)
on_activate() (Caret method)
(Window method)
on_animation_end() (Sprite method)
on_button_press() (AppleRemote method)
(Controller method)
on_button_release() (AppleRemote method)
(Controller method)
on_change() (Control method)
(Slider method)
on_clipboard_copy() (Caret method)
on_clipboard_paste() (Caret method)
on_close() (Window method)
on_commit() (TextEntry method)
on_connect() (ControllerManager method)
on_context_lost() (Window method)
on_context_state_lost() (Window method)
on_deactivate() (Caret method)
(Window method)
on_delete_text() (AbstractDocument method)
(IncrementalTextLayout method)
(TextLayout method)
on_dialog_open() (FileOpenDialog method)
on_dialog_save() (FileSaveDialog method)
on_disconnect() (ControllerManager method)
on_dpad_motion() (Controller method)
on_draw() (Window method)
on_enter() (EventLoop method)
on_eos() (AudioPlayer method)
(VideoPlayer method)
on_exit() (EventLoop method)
on_expose() (Window method)
on_file_drop() (Window method)
on_hide() (Window method)
on_insert_text() (AbstractDocument method)
(IncrementalTextLayout method)
(TextLayout method)
on_joyaxis_motion() (Joystick method)
on_joybutton_press() (Joystick method)
on_joybutton_release() (Joystick method)
on_joyhat_motion() (Joystick method)
on_key_press() (Window method)
on_key_release() (Window method)
on_layout_update() (Caret method)
(IncrementalTextLayout method)
on_mouse_drag() (Caret method)
(PushButton method)
(Slider method)
(TextEntry method)
(Window method)
on_mouse_enter() (Window method)
on_mouse_leave() (PushButton method)
(Window method)
on_mouse_motion() (PushButton method)
(TextEntry method)
(Window method)
on_mouse_press() (Caret method)
(PushButton method)
(Slider method)
(TextEntry method)
(ToggleButton method)
(Window method)
on_mouse_release() (PushButton method)
(Slider method)
(ToggleButton method)
(Window method)
on_mouse_scroll() (Caret method)
(Slider method)
(Window method)
on_move() (Window method)
on_player_eos() (AudioPlayer method)
(VideoPlayer method)
on_player_next_source() (AudioPlayer method)
(VideoPlayer method)
on_press() (Button method)
(PushButton method)
on_refresh() (Window method)
on_release() (Button method)
(PushButton method)
on_resize() (Window method)
on_show() (Window method)
on_stick_motion() (Controller method)
on_style_text() (AbstractDocument method)
(IncrementalTextLayout method)
(TextLayout method)
on_text() (Caret method)
(TextEntry method)
(Window method)
on_text_motion() (Caret method)
(TextEntry method)
(Window method)
on_text_motion_select() (Caret method)
(TextEntry method)
(Window method)
on_toggle() (ToggleButton method)
on_translation_update() (Caret method)
on_trigger_motion() (Controller method)
on_window_close() (EventLoop method)
ONE (BlendFactor attribute)
ONE_MINUS_CONSTANT_ALPHA (BlendFactor attribute)
ONE_MINUS_CONSTANT_COLOR (BlendFactor attribute)
ONE_MINUS_DST_ALPHA (BlendFactor attribute)
ONE_MINUS_DST_COLOR (BlendFactor attribute)
ONE_MINUS_SRC_ALPHA (BlendFactor attribute)
ONE_MINUS_SRC_COLOR (BlendFactor attribute)
opacity (DocumentLabel property)
(ShapeBase attribute)
(Sprite property)
open() (AppleRemote method)
(Controller method)
(Device method)
(FileOpenDialog method)
(FileSaveDialog method)
(Joystick method)
OPENGL (GraphicsAPI attribute)
OPENGL_2 (GraphicsAPI attribute)
OPENGL_ES_2 (GraphicsAPI attribute)
OPENGL_ES_3 (GraphicsAPI attribute)
opengl_persistent_buffers (Options attribute)
optimize_states (Options attribute)
Options (class in pyglet)
options (in module pyglet)
order (Group property)
orthogonal_projection() (Mat4 class method)
OSX (Platform attribute)
osx_alt_loop (Options attribute)
outer_radius (Star attribute)