We are moving back to py5's previous release frequency of a release every 2-3 months. This is minor release with one important feature to support Thonny users, as well as a handful of bug fixes and other improvements.
Imported Mode Code Importing feature
Python projects with moderate to large amounts of code will be typically split into multiple files that will be
imported from from one file to another. However, due to the way py5's Imported Mode works, this couldn't be done with py5 Imported Mode code. This new feature changes that, supporting the ability to import Imported Mode code from one file to another. How to do this is described in more detail in the documentation page Importing Imported Mode Code. In addition, the documentation also describes General py5 Importing Guidelines for writing importable py5 code in that supports all of py5's programming modes.
gto access the primary Py5Graphics object is now deprecated. Users will receive a warning message instructing them to use
get_graphics()intead. Allowing the single character
gto be a reserved variable name is problematic for users coding in Imported Mode. Consider that the
gvariable is often used in a rgb variable triplet. The
gvariable will be removed in the next release.
Update dependency versions for numpy from 1.23 to 1.24 and for pillow from 9.2 to 9.5
Py5Shape.color_mode()method, similar to
curve_vertices(), analogous to the other methods of the same name.
New matplotlib related features
Some improvements to py5's OSX support