Skip to main content

planes - 0.5.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

'clickndrag' has been renamed to 'planes', this is the first release under the new name.

Planes now handle mouseovers, by default highlighting the Plane. GUI buttons and options will highlight by default. Added PlusMinusBox GUI widget.

Added modules gui.lmr and gui.tmb which enable bitmap image backgrounds for planes GUI widgets. Included a set of default background images.

Improved transparency for GUI widgets.

Added FadingContainer GUI widget which will fade out over time.

Numerous fixes and improvements, along with a documentation update.

Links

Home Page
http://florian-berger.de/en/software/planes
Source
http://static.florian-berger.de/planes-0.5.0.tar.bz2
Windows
http://static.florian-berger.de/planes-0.5.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.