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

python 3.10 needs explicit float-to-int casting #91

Closed
rapgro opened this issue Nov 9, 2021 · 1 comment
Closed

python 3.10 needs explicit float-to-int casting #91

rapgro opened this issue Nov 9, 2021 · 1 comment

Comments

@rapgro
Copy link

rapgro commented Nov 9, 2021

blockHeight = self._qpart.blockBoundingRect(self._qpart.firstVisibleBlock()).height()

No idea but height() gives a float when compiled with python 3.10

Please use instead a workaround as in
blockHeight = int(self._qpart.blockBoundingRect(self._qpart.firstVisibleBlock()).height())

@andreikop
Copy link
Owner

Hi
I've fixed the bug and tagged a version
Checkout master

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

2 participants