e01.org

Pyglet

Pyglet is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications. pyglet runs on Microsoft Windows, macOS, and Linux; it is released under the BSD Licence. pyglet was first created by Alex Holkner. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

Pyglet is a library for the Python programming language that provides an object-oriented application programming interface for the creation of games and other multimedia applications. pyglet runs on Microsoft Windows, macOS, and Linux; it is released under the BSD Licence. pyglet was first created by Alex Holkner. from pyglet.window import Window from pyglet.app import run window = Window(caption="Hello world!", width=640, height=480) run() In this example, lines 1-2 import the pyglet module's necessary components. Line 4 creates a window, and line 6 calls pyglet to run its event loop. Optionally an update rate (in frames per second) can be specified in a rate parameter.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Pyglet". 1720527494. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1233519569

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·