-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding padding to a widget #229
Comments
Yep, it's entirely possible. I'll look for an implementation of widget_padding |
Padding has been implemented. Some possible combinations: menu.add_button(0, pygame_menu.events.NONE, padding=25)
menu.add_button(0, pygame_menu.events.NONE, padding=(25, 25, 25, 25))
menu.add_button(0, pygame_menu.events.NONE, padding=(25, 50, 75, 100))
menu.add_button(0, pygame_menu.events.NONE, padding=(25, 50))
menu.add_button(0, pygame_menu.events.NONE, padding=(25, 75, 50)) This is entirely experimental. Some issues should be resolved but I need user feedback. I'll create a new version today, hope this resolves your issue |
Padding rules are the same as CSS https://www.w3schools.com/css/css_padding.asp |
I'll leave this issue opened for suggestions or further feedback after v340 is released |
New version 3.4.0 released. If there's any feedback, suggestion or bug please create a new issue or a PR |
If I'm not mistaken, there's currently no way to add padding to a widget.
In my case it's a problem if I want the left and right border of each buttons to align:
Would an implementation of an optional widget_padding argument be possible?
The text was updated successfully, but these errors were encountered: