Difference between revisions of "Python Resources"
Line 74: | Line 74: | ||
* http://mcsp.wartburg.edu/zelle/python/graphics.py | * http://mcsp.wartburg.edu/zelle/python/graphics.py | ||
* http://mcsp.wartburg.edu/zelle/python/ | * http://mcsp.wartburg.edu/zelle/python/ | ||
* http://mcsp.wartburg.edu/zelle/python/graphics/graphics.pdf | |||
* http://cpsc110.umwblogs.org/installing-python-graphics-library/ | * http://cpsc110.umwblogs.org/installing-python-graphics-library/ | ||
* http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/graphics.html# | |||
Alternative: | Alternative: | ||
* http://plotdevice.io/ | * http://plotdevice.io/ | ||
* http://www.cc.gatech.edu/classes/AY2013/cs1301_summer/presentations/calico_graphics.pdf | |||
[[Category:Resources]] | [[Category:Resources]] |
Revision as of 18:21, 13 April 2016
Python Source Code and Modules
- ipython - a friendly interactive shell for python. Info ONLamp Article
- matplotlib - a handy system for plotting in python.
- numpy - numeric analysis in python (needed for matplotlib)
- dateutil
- Crystal Space 3D
- PyX - A Python PS and PDF graphing package
- pygame - a Python game development system
- iCalendar package for Python
- VPython - 3D Programming in Python
- PEAK Easy Install
Python GUI Options
I need to write some programs that use GUI. Python TKinter is available on all versions of Python, but on the Mac it is slow to start and uses XWindows. Here are some options I'm thinking of:
- wikibooks has a page on Python Program/GUI Programming options
Books on Tkinter:
- Chapter 18 of Core Python Programming discusses GUI Programming with Tkinter
- Programming Python, 2nd Edition, Chapter 7 and 8
- reddit has a page on Python 3.x books for Tkinter
- Introduction to Tkinter on effbot.org
- Python 3.2 tkinter doc
- Thinking in Tkinter
- Python wiki 'GUI Programming in Python'
- Python 2.7 Tkinter Doc
- Original 'An introduced to Tkinter' by Fredrik Lundh
Other options:
- Uses FLTK, the Fast Light Toolkit
Python Training
I've seen these and highly recommend them:
- Advanced Python or Understanding Python, Thomas Wouters, Google Tech Talks, February 21, 2007.
To Watch
I haven't seen these yet:
- PyCon 2009 Videos
- Python 101, PyCon 2011
- Introducing Python, 24 minutes of interviews.
- Python 3.0 training
- Python 3 tutorial - String formatting and conditions
- Python 3 Tutorial: Variables and Strings
- Python 3 Tutorial: 3 - Strings
- [http:/www.youtube.com/watch?v=v6nD8f-J_XU Python 3 Tutorial: 17 - String Methods]
- Ira Krakow's Python 3 Tutorial Part 2 (Strings)
- fc9buLUiqLE Ira Krakow's Python 3 Essential Training --- Splitting and...
Printed Materials
- Dive Into Python 3 (book)
Python Installation
If you are using a Mac, you almost certainly want to ditch Apple's python implementation and instead install your own from:
If you want everybody to be able to use your GUI, you probably want to write it in Tkinter (Python's Tcl/Tk bindings). If you want to actually enjoy what you are writing, you want to use wxpython.
On the Mac, you can install matplotlib with this command using MacPorts::
% sudo port install py-matplotlib py-ipython
Image Manipulation
Use Pillow, the Python2/3 fork of Python Image Library (PIL)
On Mac, install with:
% sudo port install py27-Pillow py33-Pillow
Links:
- http://jeremykun.com/2012/01/01/random-psychedelic-art/
- http://pythonvision.org/basic-tutorial
- http://stackoverflow.com/questions/138250/read-the-rgb-value-of-a-given-pixel-in-python-programatically
Python Graphics (mostly with graphics.py)
- http://mcsp.wartburg.edu/zelle/python/graphics.py
- http://mcsp.wartburg.edu/zelle/python/
- http://mcsp.wartburg.edu/zelle/python/graphics/graphics.pdf
- http://cpsc110.umwblogs.org/installing-python-graphics-library/
- http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/graphics.html#
Alternative: