Skip to content

Add support for horizontal CheckButtons #27946

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Mar 19, 2024

PR summary

This is a followup to #13374, but for CheckButtons. Also updates the test image to check both options.

Feel free to review after #13374 or as a group. This is built on top of that one, so merging this would merge that as well.

PR checklist

@QuLogic QuLogic force-pushed the horizontal-checkbuttons branch from b58dc7d to f92a95f Compare March 19, 2024 06:00
@QuLogic QuLogic force-pushed the horizontal-checkbuttons branch from f92a95f to 873a3d8 Compare May 17, 2024 20:24
@QuLogic QuLogic added this to the v3.10.0 milestone May 17, 2024
@timhoffm
Copy link
Member

As a general remark: The buttons are placed above the text:
grafik

I believe the more common placement text next to the buttons:
grafik
This would also have the advantage of keeping the height smaller.

I'm not blocking, but we should be clear what the desired result is and we're not accidentally moving into an unwanted direction.

@QuLogic QuLogic mentioned this pull request Aug 21, 2024
6 tasks
A new optional keyword argument 'layout_direction' is introduced to
control it. The new parameter defaults to 'vertical' for backwards
compatibility.
@QuLogic
Copy link
Member Author

QuLogic commented Aug 21, 2024

I assume the reason for implementing it that way was that it was easier to implement. The latter requires accounting for the text width before placing the markers, while the former just places them equidistantly.

@QuLogic QuLogic force-pushed the horizontal-checkbuttons branch from 873a3d8 to 9a5eb5b Compare August 21, 2024 22:07
@timhoffm
Copy link
Member

You could still place equidistantly with text right of the buttons. The possible overlap issues are the same, except that you have a constant reserved space for the buttons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants