pygfx/rendercanvas: v2.6.2
Abstract
Notable API changes The canvas.is_closed() method, which was already deprecated, is removed, use get_closed() instead. Running a task with loop.add_task() now always runs on rendercanvas' own micro-framework, never on a native framework like asyncio, so you can only use sleep and Event from rendercanvas.utils.asyncs. Likewise, the sleep and Event from rendercanvas.utils.asyncs can no longer be used in e.g. asyncio. loop.call_soon() and loop.call_later() now return an object that allows canceling the callback. Merged PR's Fix two scheduling bugs by @almarklein in https://github.com/pygfx/rendercanvas/pull/246 Refactor canvas and loop closing logic by @almarklein in https://github.com/pygfx/rendercanvas/pull/227 Add comment for post-close polling by @almarklein in https://github.com/pygfx/rendercanvas/pull/248 Support presenting to a native Wayland surface on Qt by @hmaarrfk in https://github.com/pygfx/rendercanvas/pull/233 Tweak events example by @almarklein in https://github.com/pygfx/rendercanvas/pull/245 Add text example by @almarklein in https://github.com/pygfx/rendercanvas/pull/251 Feature request: Add callback submethod for data handling by @hmaarrfk in https://github.com/pygfx/rendercanvas/pull/252 Ensure utf-8 encoding for anywidget by @Vipitis in https://github.com/pygfx/rendercanvas/pull/253 enable stack switching with present method screen in pyodide by @Vipitis in https://github.com/pygfx/rendercanvas/pull/258 Refactor async mechanics by @almarklein in https://github.com/pygfx/rendercanvas/pull/260 Better readable stub.py by copying in the docstrings as comments by @almarklein in https://github.com/pygfx/rendercanvas/pull/261 fix EventEmitter.remove_handler by @lkeegan in https://github.com/pygfx/rendercanvas/pull/264 A variety of fixes by @almarklein in https://github.com/pygfx/rendercanvas/pull/262 Fix flaky CI test (and allow overriding call_later impl for qt and wx) by @almarklein in https://github.com/pygfx/rendercanvas/pull/266 Better performance for call_later_from_thread by @almarklein in https://github.com/pygfx/rendercanvas/pull/265 Version 3.0 by @almarklein in https://github.com/pygfx/rendercanvas/pull/247 New Contributors @lkeegan made their first contribution in https://github.com/pygfx/rendercanvas/pull/264 Full Changelog: https://github.com/pygfx/rendercanvas/compare/v2.7.2...v3.0.0
Fields of Study & Subjects
Computer Graphics and Visualization Techniques
Computational Physics and Python Applications
Mobile and Web Applications
Publication details
- Journal / source
- Zenodo (CERN European Organization for Nuclear Research)
- Publication date
- 9 March 2026
- Language
- EN