Skip to content

NF: Porting Radio button and check box. - #1305

Merged
skoudoro merged 2 commits into
fury-gl:masterfrom
maharshi-gor:button-groups
Jul 27, 2026
Merged

NF: Porting Radio button and check box.#1305
skoudoro merged 2 commits into
fury-gl:masterfrom
maharshi-gor:button-groups

Conversation

@maharshi-gor

Copy link
Copy Markdown
Contributor
  • Incorporated new icons from @ganimtron-10 for selected state of the radio button.
  • Test cases included.
  • Tutorial for the same is included.

@skoudoro skoudoro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @maharshi-gor,

Overall looks good.

It seems there is a bug with radio button since selection should be unique and I succeed to have multiple selected.

Something to dig. (ButtonGroup.select() to look)

Comment thread fury/ui/elements.py
Color of the label text. Accepts a hex string ("#FF0000"), RGB(A) in
[0, 1], or RGB(A) in [0, 255].
position : (float, float), optional
Absolute coordinates (x, y) of the top-left corner of this component.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure top-left corner ? look like vtk, isn't it lower-left now ?

Comment thread fury/ui/elements.py
Color of the label text. Accepts a hex string ("#FF0000"), RGB(A) in
[0, 1], or RGB(A) in [0, 255].
position : (float, float), optional
Absolute coordinates (x, y) of the top-left corner of this component.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure top-left corner ? look like vtk, isn't it lower-left now ?

Comment thread fury/ui/elements.py
Color of the label text. Accepts a hex string ("#FF0000"), RGB(A) in
[0, 1], or RGB(A) in [0, 255].
position : (float, float), optional
Absolute coordinates (x, y) of the top-left corner of this component.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure top-left corner ? look like vtk, isn't it lower-left now ?

Comment thread fury/ui/elements.py Outdated
Comment on lines +2436 to +2439
try:
update()
except Exception:
pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is weird. ignore all exception ? to remove or put a warning, something

Comment thread fury/ui/elements.py
z_order=0,
):
"""Init class instance."""
if len(checked_labels) > 1:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not compatible with generator. so use len(list(checked_labels))

@skoudoro

Copy link
Copy Markdown
Contributor

It seems there is a bug with radio button since selection should be unique and I succeed to have multiple selected.

Strange, I can not reproduce it....

@maharshi-gor

Copy link
Copy Markdown
Contributor Author

I confirm the top left is the new convention.

I also could not reproduce double checked radio button.

But this was a good catch as many places write lower left instead of top left while porting.

Working on that.

-Tutorial provided for the same.
-New icons for checkbox and radio button are incorporated for different states.
-Lower-top docstrings fixed.

@skoudoro skoudoro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems to be ok.

Thank you @maharshi-gor. merging

@skoudoro
skoudoro merged commit d2beab4 into fury-gl:master Jul 27, 2026
22 checks passed
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.

2 participants