|Keywords||pygame widget widgets gui|
This librairy aims to provide simple widget to improve pygame applications like buttons, text, textboxes or math text widgets. There is also some goemetric shapes, like rectangle or bezier curves.
(optionnal) * latex : you must avec latex install if you want to use the LaText widget (latex and dvipng accessible in path)
You can install it with pip and pypi easily by :
pip install -U PygameGUILib
or via git and pip :
pip install -U git+https://github.com/ddorn/GUI.git@release#egg=GUI
Actually there is a fex widgets in the library. I’ll try to maintain this list, but I’m sure I’ll forget, so there is MORE than that.
Around that, there is a lot of helping objects, like Font, colors, V2 and Separator (some vector things), FPSIndicator, FocusSelector…
Every widget has a pos, a size and an anchor, the three can be harcoded or a callback function with no parameters. The pos and the size defines a pygame.Rect where the widget is. The posis per default the center of the widget, but you can change this behavior by giving an other anchor, like TOPLEFT.
As always with pygame, do not try to make too big apps with a lot of changing texts or with too big protions of the screen that are too often redrawn or it can lag a bit.
You’re welcome !
How can you help ?
This is absolutly not an ordered list, they will come as I have nice looking and useable classes !
Examples at the and of each file can also give you a lot of samples of how to use this library :) There is also a folder full of example that you will apreciate !