-
-
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
Wordwrap in buttons #488
Comments
Please se #490 :) |
Great contribution! Please add yourself to docs/_source/contributors.rst. Will look tomorrow and upload to pip. – |
Done. Thanks for considering my code :) |
Thank you! I was worried about repeating code but wasn't confident enough to do such a large refactor. Unfortunately, after pulling in the latest copy and trying my project, I run in to my original error (the width of the button is wider than that of the frame surrounding it). It doesn't seem to be doing the word wrap and I think I see why: In my case, these buttons are within a VFrame, and I need them to not exceed the width of that. It's hard to see in my screenshot before so here's a screenshot outlining things. The green is a menu, blue are frames. I've updated my code to call the Button without Do you have any suggestion if anything can be done on my end to make this look for the frame width instead of the menu width? |
As Also, I fixed the Frame awareness while computing container width. See 96f8a7a. Let me know if that works, so I upload new v4.5.1 to pip. |
Brilliant! I updated my local cache of Thank you! |
Uploaded new v4.5.1 to pip. Please update as this has some interesting features, thanks!. |
Is your feature request related to a problem? Please describe.
I'm trying to handle cases in my program where the text for a button might be a bit long.
I'm able to
button.set_max_width()
but this only scales the text in order to make it fit.Describe the solution you'd like
I'd like to be able to
wordwrap=True
similar to how aLabel
works. This would increase the height of the button and allow text to flow onto multiple lines.Describe alternatives you've considered
Creating a custom widget that combines the functionality of Buttons and Labels.
The text was updated successfully, but these errors were encountered: