Pygame Widgets v1.0.0
Pygame Widgets v1.0.0
This is the official new release of Pygame Widgets!
Installation
To install the new version, run the following command in a terminal window.
pip install pygame-widgets==1.0.0
Usage
After creating your widgets the usual way, you no longer need to call their listen and draw methods every loop. Instead, simply add:
pygame_widgets.update(events)
at the end of the main loop and this will handle all of that. Simply call the disable or hide method if you don't want the widget to listen or draw:
widget.disable()
or widget.hide()
Note: Documentation is now available on readthedocs.io.