-
Notifications
You must be signed in to change notification settings - Fork 19
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
spinbox function add in window covering #129
Conversation
655020d
to
b5874a5
Compare
f58541a
to
c0eb417
Compare
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.
Thanks for hard work
self.spinBoxWindow.valueChanged.connect(self.spin_value_changed) | ||
self.spinBoxWindow.setSingleStep(1) | ||
|
||
|
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.
remove empty line
def init_spinbox(self): | ||
self.spinBoxWindow.installEventFilter(self) | ||
self.spinBoxWindow.valueChanged.connect(self.spin_value_changed) | ||
self.spinBoxWindow.setSingleStep(1) |
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.
Since the init_spinbox function has been created, the following spinbox contents of init_slider function must be moved.
self.spinBoxWindow.setRange(
WINDOWCOVERING_MIN_VAL, WINDOWCOVERING_MAX_VAL)
self.spinBoxWindow.setSingleStep(
self.common_window.get_slider_single_step(WINDOWCOVERING_MIN_VAL, WINDOWCOVERING_MAX_VAL))
self.spinBoxWindow.setValue(WC_INIT_LEVEL)
Modified to operate when the arrow button of the spinbox is pressed in window covering
Spinbox code clean up