Pygame Widgets v1.0.0-beta
Pre-release
Pre-release
Pygame Widgets v1.0.0-beta
This pre-release implements a new system for handling mouse input and widgets.
Installation
To install this pre-release use the terminal command:
pip install pygame_widgets==1.0.0b0
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 will be made available as soon as possible.