Pyglet
PygletはPythonのライブラリであり、オブジェクト指向のアプリケーションプログラミングインタフェースを提供する。Pygl…
| 開発元 | Pyglet User Community |
|---|---|
| 最新版 |
2.1.3
/ 2025年2月24日 |
| リポジトリ | |
| 対応OS | Cross-platform |
| 種別 | ライブラリ |
| ライセンス | 修正BSDライセンス |
| 公式サイト | http://pyglet.org/ |
PygletはPythonのライブラリであり、オブジェクト指向のアプリケーションプログラミングインタフェースを提供する。Pygletはゲームやマルチメディアアプリケーションの作成に用いられる。Pygletはクロスプラットフォームなライブラリであり[1] 、Microsoft Windows・Mac OS X・Linux上で動作する。PygletはBSDライセンスの下で提供されている。Pygletは依存するパッケージがないという特徴を持つ[1]。
Pygletはウィンドウ表示・フルスクリーン表示・複数のモニタをサポートしている[1]。通常でも多くの形式の画像・動画・音楽ファイルを実行することができるが、AVbinプラグインを導入することで、さらに取り扱える形式が増える。AVbinプラグインはLibavというパッケージを用いており、このパッケージはMP3・Ogg/vorbis・Windows Media Audio・DivX・MPEG-2・H.264・WMV・XviDなどの形式を扱うことができる[1]。
例
import pyglet
window = pyglet.window.Window(width=640, height=480, caption="Hello World!")
pyglet.app.run()
出典
関連項目
外部リンク
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.