ppizarror / pygame-menu

A menu for pygame. Simple, and easy to use
https://pygame-menu.readthedocs.io/
Other
555 stars 141 forks source link

update_font() in ToggleSwitch does not update state_text_font_size #420

Closed anetanel closed 1 year ago

anetanel commented 2 years ago

I hope I'm not missing something obvious.. I'm changing the size of the widget font when the size of the window changes, by calling update_font() for each widget in the menu. It works well for all the widgets, except for the state text inside the toggle switch, which stays the same size it was initialized. I could not find a function that updates the state text...

ppizarror commented 1 year ago

Fixed in #435. Thanks!