pp
pp copied to clipboard
Code for book Python Playground by Mahesh Venkitachalam (No Starch Press, USA)

`test1` is presumbly the python way to apply the rules, where `test2` is numpy way. Would be helpeful to see both versions and compare.
In python 3.9.0 the function gcd is in the math module.
EDIT: After the installation of Ghostscript 9.50, which I obtained from https://pages.uoregon.edu/koch/Ghostscript-9.50-Full.pkg, the program writes the png file as expected on key "s" -- PIL requires the presences of Ghostscript,...
EDIT: despite these error flags in PyCharm, the program does run. at https://github.com/electronut/pp/blob/master/spirograph/spiro.py in lines 116, 117, and 127 the PyCharm (Python 3.8.1) flags the methods turtle.window_width(), turtle.window_height(), and turtle.ontimer(...)...
The code presents the following error: anatomyPlaylist.py:16: DeprecationWarning: The readPlist function is deprecated, use load() instead plist = plistlib.readPlist(fileName) Traceback (most recent call last): File "anatomyPlaylist.py", line 162, in main()...
…ed use load() instead' by adding getPlist function that calls load().' I have very much appreciated your book and the projects within! Thank you. - Rachel Hunt
modify codes
I found glfw a python module on pypi. So we can use it, stead of implementing it again.