Skip to content
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

Expose the orientation selection in the calibration GUI #2019

Closed
wants to merge 6 commits into from

Conversation

kif
Copy link
Member

@kif kif commented Dec 14, 2023

Close #2005

@kif
Copy link
Member Author

kif commented Dec 14, 2023

@vallsv I will need you help to setup a drop down menu for the selection of orientations (from an enum) ... Do you have some time to discuss about the project ?

@kif kif added gui Affects only the graphical user interface work in progress Don't review labels Dec 14, 2023
@vallsv
Copy link
Collaborator

vallsv commented Dec 15, 2023

That's basically that

cb = QComboBox()
cb.addItem("Label", userData=YOUR_ENUM_VALUE)

But i suggest you to wrap that in a dedicated class, so what the exposed API can only deal with your enum type.

You basically can copy paste and adapt the AutoscaleModeComboBox https://github.com/silx-kit/silx/blob/e1f33d59a25b9edca5ab7c5e13bcd2df2c5a2997/src/silx/gui/dialog/ColormapDialog.py#L232

@kif
Copy link
Member Author

kif commented Dec 18, 2023

Bad push ... sorry -> see #2020

@kif kif closed this Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gui Affects only the graphical user interface work in progress Don't review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Calib2] Offer the option to chose the orientation of the detector
2 participants