planes - 0.6.0
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.
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.
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.