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

Provide int to self._play_timer.setInterval #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nabobalis
Copy link
Contributor

Description

I was trying to change the speed of the movie playback and saw this error:

TypeError: setInterval(self, msec: int): argument 1 has unexpected type 'float'
Traceback (most recent call last):
  File "/home/nabil/Git/glue/glue/utils/misc.py", line 55, in result
    return func(*args, **kwargs)
  File "/home/nabil/Git/glue-qt/glue_qt/viewers/common/data_slice_widget.py", line 163, in _adjust_play
    self._play_timer.setInterval(500 / abs(self._play_speed))
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I just now force this to be an int with the division.

@nabobalis nabobalis reopened this Dec 24, 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

Successfully merging this pull request may close these issues.

1 participant