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

BUG: PyDMSlider throws a TypeError when using floats and the handle is dragged #1129

Open
YektaY opened this issue Nov 13, 2024 · 0 comments
Assignees

Comments

@YektaY
Copy link
Collaborator

YektaY commented Nov 13, 2024

Describe the bug
TypeError is thrown when trying to move a slider constrained to be between 0 and 1 with float values

Expected behavior
no TypeError

Steps to Reproduce
if you create a slider with a min value of 0 and a max of 1 with 101 steps, link it to some channel and try to grab it by holding the left mouse button and moving the mouse you get this error

Possible Solution
mouseMoveEvent uses QSlider's setValue method to set the value of the slider. I believe this has to be switched to PyDM's Value method

@YektaY YektaY self-assigned this Nov 13, 2024
@YektaY YektaY changed the title BUG: PyDMSlider throws a TypeError when using floats and the handled is dragged BUG: PyDMSlider throws a TypeError when using floats and the handle is dragged Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant