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

StageWidget to monitor and control each motorized stage #275

Merged
merged 38 commits into from
Apr 5, 2024

Conversation

kangz12345
Copy link
Member

@kangz12345 kangz12345 commented Apr 3, 2024

This updates some features added in #248 and introduces an individual stage controller widget without signal connection.
The next PR will be a qiwis app using this widget.

See also: #245.

Screenshot 2024-04-04 at 02 24 05

@kangz12345 kangz12345 added the enhancement New feature or any improvements to codes label Apr 3, 2024
@kangz12345 kangz12345 self-assigned this Apr 3, 2024
@kangz12345 kangz12345 requested a review from BECATRUE as a code owner April 3, 2024 17:26
@kangz12345 kangz12345 mentioned this pull request Apr 3, 2024
3 tasks
iquip/apps/stage.py Outdated Show resolved Hide resolved
iquip/apps/stage.py Show resolved Hide resolved
iquip/apps/stage.py Outdated Show resolved Hide resolved
Args:
open_: True for open, False for closed.
"""
self._inner.setEnabled(open_)
Copy link
Member

Choose a reason for hiding this comment

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

It looks so fancy!

@kangz12345 kangz12345 requested a review from BECATRUE April 4, 2024 03:38
self.absoluteBox = QDoubleSpinBox(self)
self.absoluteBox.setButtonSymbols(QAbstractSpinBox.NoButtons)
self.absoluteBox.setDecimals(3)
self.absoluteBox.setSingleStep(0.001)
Copy link
Member

Choose a reason for hiding this comment

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

Is there any reason to set its single step even if there is no button?

Copy link
Member Author

@kangz12345 kangz12345 Apr 4, 2024

Choose a reason for hiding this comment

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

We can adjust the value by scrolling mouse wheel or pressing keyboard arrow keys.
I removed the buttons to save space.

Copy link
Member

Choose a reason for hiding this comment

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

Oh, I forgot we can adjust it without clicking the button directly.
Then, please never mind😃

@kangz12345 kangz12345 requested a review from BECATRUE April 4, 2024 15:23
Copy link
Member

@BECATRUE BECATRUE left a comment

Choose a reason for hiding this comment

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

LGTM

@kangz12345 kangz12345 merged commit 68635bf into develop Apr 5, 2024
8 checks passed
@kangz12345 kangz12345 deleted the kangz12345/245/stage-widget branch April 5, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or any improvements to codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants