Skip to main content

planes - 0.6.0

planes is a hierarchical surface framework for Pygame, formerly called clickndrag.


Florian Berger
(fberger)

Mouse-sensitive sprites. Hierarchical windows. Drag and drop. All with one new class. No messing with your main loop.

The planes module introduces the "Plane" class which extends PyGame's "Surface" functionality, offering a hierarchy of mouse-sensitive, draggable Surfaces that can be used as sprites, windows, icons or other interactive elements.

In addition, the planes.gui module uses planes to provide basic GUI elements like container, label, text box, option list and button.

Changes

planes now logs runtime statistics and displays them when F12 is pressed. There is a font manager class now, and planes comes bundled with a selection of free fonts for instant use. A font usage example is inculded. There is a new widget planes.gui.ProgressBar. All gfx and font resources are now bundled in a 'resources.zip' file which is distributed along with planes. planes now uses cx_Freeze to build executables. Added mouse wheel support for the Plane class and the PlusMinusBox widget specifically. Optimized Plane.render() a little to check whether subplanes actually intersect with Display.rect. Bug fixes and enhancements in Plane.render(), gui.Container.sub(), and 'planes_interactive.py'. Docs update.

Links

Home Page
http://florian-berger.de/en/software/planes
Source
http://static.florian-berger.de/planes-0.6.0.zip

Releases

planes 0.5.0 — 22 Jun, 2012

planes 0.6.0 — 5 Mar, 2013

Pygame.org account Comments

  • codetricity 2013-03-15 02:42

    I am having problems getting the planes GUI module to work.

    I get this message:

    IOError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/planes/gui/MANIFEST'

    These are my files.

    gui $ ls

    __init__.py lmr.py resources.zip tmb.pyc

    __init__.pyc lmr.pyc tmb.py

    Lyra 2013-06-19 21:43

    When you run it for the first time you need to have root/administrator permissions because the resources.zip will be unzipped initially. At least that worked for me.

  • Bob N. 2014-07-17 18:11

    Now, unless I did something incorrectly, I do not understand why nobody has asked how to get the planes gui running. I do not see instructions on Florian's website nor in the documentation. All I see on Florian's website is you type

    python setup.py install

    ... which I did, and I see the folder, but I do not see any executable file. Is this program not made for Windows or do I need to compile it as an exe? Windows OS only supports .exe and .com as an executable file.

    Joseph Paavola 2015-07-28 18:04

    Dear Bob,

    planes 0.6.0 does not support Windows as of now it seems. Go to planes 0.5.0 and click the "Windows" link near the "Source" link. I know this was posted a year ago but maybe you'll see it or get it in an email and get started back on a project that this has been blocking. Good luck.