Skip to content

Pyglet 2.x, Python >=3.8 (including 3.14)#440

Open
karna48 wants to merge 3 commits intoPyLadiesCZ:masterfrom
karna48:master
Open

Pyglet 2.x, Python >=3.8 (including 3.14)#440
karna48 wants to merge 3 commits intoPyLadiesCZ:masterfrom
karna48:master

Conversation

@karna48
Copy link

@karna48 karna48 commented Jan 31, 2026

Pyglet updated to 2.x -> creating compatible OpenGL for using deprecated API calls such as glPushMatrix.

Fixed PEP 765 violation in loading.py SyntaxWarning: 'return' in a 'finally' block

fixed: RuntimeError: There is no current event loop in thread 'MainThread'.

Readme: example was referencing map game_1 which does not exist -> belt_map

Inkscape 1.2.2: Warning: Option --export-png= is deprecated Changed to --export-filename=

tested with Python 3.8.20 and Python 3.14.2 on Linux Mint 22.3:

Pip freeze (Python 3.8.20):
aiohappyeyeballs==2.4.4
aiohttp==3.10.11
aiosignal==1.3.1
async-timeout==5.0.1
asyncio==4.0.0
attrs==25.3.0
click==8.1.8
frozenlist==1.5.0
idna==3.11
multidict==6.1.0
propcache==0.2.0
pyglet==2.1.12
PyYAML==6.0.3
typing_extensions==4.13.2
yarl==1.15.2

Pip freeze (Python 3.14.2):
aiohappyeyeballs==2.6.1
aiohttp==3.13.3
aiosignal==1.4.0
asyncio==4.0.0
attrs==25.4.0
click==8.3.1
frozenlist==1.8.0
idna==3.11
multidict==6.7.1
propcache==0.4.1
pyglet==2.1.12
PyYAML==6.0.3
yarl==1.22.0

Pyglet updated to 2.x -> creating compatible OpenGL for using deprecated API calls such as glPushMatrix.

Fixed PEP 765 violation in loading.py SyntaxWarning: 'return' in a 'finally' block

fixed: RuntimeError: There is no current event loop in thread 'MainThread'.

Readme: example was referencing map game_1 which does not exist -> belt_map

Inkscape 1.2.2: Warning: Option --export-png= is deprecated
Changed to --export-filename=

tested with Python 3.8.20 and Python 3.14.2 on Linux Mint 22.3:

Pip freeze (Python 3.8.20):
aiohappyeyeballs==2.4.4
aiohttp==3.10.11
aiosignal==1.3.1
async-timeout==5.0.1
asyncio==4.0.0
attrs==25.3.0
click==8.1.8
frozenlist==1.5.0
idna==3.11
multidict==6.1.0
propcache==0.2.0
pyglet==2.1.12
PyYAML==6.0.3
typing_extensions==4.13.2
yarl==1.15.2

Pip freeze (Python 3.14.2):
aiohappyeyeballs==2.6.1
aiohttp==3.13.3
aiosignal==1.4.0
asyncio==4.0.0
attrs==25.4.0
click==8.3.1
frozenlist==1.8.0
idna==3.11
multidict==6.7.1
propcache==0.4.1
pyglet==2.1.12
PyYAML==6.0.3
yarl==1.22.0
@karna48
Copy link
Author

karna48 commented Feb 3, 2026

zapracoval jsem vsechny poznamky a take zjednodusil player_sprite_proxy

@karna48 karna48 requested a review from encukou February 3, 2026 21:12
@befeleme
Copy link
Contributor

Ahoj, stahla jsem si zmeny z tohoto PR, ale nedari se mi spustit graficke prvky hry - interface neni pohyblivy, herni plocha se nevykresluje. Zkusim do toho zavrtat vic.

@encukou
Copy link
Member

encukou commented Mar 4, 2026

Ahoj! Omlouvám se za delší ticho.
Koukali jsme na to s Karolinou, a vypadá to že jediný důvod pro forward_compatible=False, resp. gl_compat, je util_frontend.window_zoom.
V ní by mohlo místo gl_compat funkcí stačit nastavit window.view na Mat4.from_scale(Vec3(zoom, zoom, 1)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants