-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
Resolved the pylint warning.
Args: | ||
open_: True for open, False for closed. | ||
""" | ||
self._inner.setEnabled(open_) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks so fancy!
Applied the review.
self.absoluteBox = QDoubleSpinBox(self) | ||
self.absoluteBox.setButtonSymbols(QAbstractSpinBox.NoButtons) | ||
self.absoluteBox.setDecimals(3) | ||
self.absoluteBox.setSingleStep(0.001) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.