Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pyglet2.1dev$VERSION updates #2226

Merged
merged 45 commits into from
Jul 18, 2024
Merged

Pyglet2.1dev$VERSION updates #2226

merged 45 commits into from
Jul 18, 2024

Conversation

pushfoo
Copy link
Member

@pushfoo pushfoo commented Jul 9, 2024

Supercedes #2183 (same contents, just a branch on the main Arcade repo)

Big changes:

  1. Modified code to use pyglet.options object appropriately
  2. No more __eq__ deletion tricks
  3. Partly document and type the pyglet text stack's apparent secret undocumented support for partial bolding (yes, I tested this)

Other changes:

  • Sound annotations
  • Align & pyright's spec-violating ideas o on Literal for text
  • Document the apparent undocumented support for string bold values across non-win32 platforms
  • Use | None in a few places
  • Temp fix float vs int for window sizes (Apple supports these, apparently to simplify touch events)

To resolve:

  • Verify that the workaround for pyglet font loading changes work
  • Figure out the current actual state of Label's font return values
  • Resolve italic and bold + strings vs bools
    • pyglet seems open to splitting bold into weight and bold
      2.1 seems Upstream fixes (Digi might be look into this, tbd)
    • Look for ways to simplify and/or make our Text more durable
  • The GUI stack & event handlers
  • Whatever's going with Screen types and pyglet's import trickery

* Use new-style | None

* Add casting and TODO on resolving screen coord issues upstream

* Mention rounding issue in set_fullscreen
* Update top-level docstring

* Update bold setter & getter

* Update bold return types
* Use development pyglet in rolling release mode + comment it

* Add commented-out future pyglet == 2.1dev4 release we can swap to it later
* Centralize headless

* Add some type: ignore since pyglet did vague .pyi
@einarf einarf mentioned this pull request Jul 18, 2024
7 tasks
@einarf einarf merged commit 6e8259d into development Jul 18, 2024
8 checks passed
@einarf einarf deleted the pyglet2.1dev-updates branch July 18, 2024 11:57
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.

2 participants