AustL / PygameWidgets

A module for use with Pygame. Includes fully customisable buttons, textboxes, sliders and many more, as well as the ability to create and run animations on these widgets.
MIT License
57 stars 16 forks source link

Adding a search bar #35

Closed lionel42 closed 3 years ago

lionel42 commented 3 years ago

Hi,

I really enjoy that library !

I wanted to add a search bar widget. I tried to stay compliant with how the library works. Also tried to include the DropDown menu and TextBox functionalities to ease the implementation.

Added one py file and one md file of the doc, with an example gif where we can search a color among all the available ones in pygame.

searchbox

Also fixed few things from the drop down menu:

Addition to TextBox:

Fixed imports

Let me know if anything should be added/changed

AustL commented 3 years ago

This is an amazing addition, thank you very much!