andreikop / qutepart

Code editor component for PyQt5
http://enki-editor.org
GNU Lesser General Public License v2.1
111 stars 30 forks source link

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

Closed rapgro closed 2 years ago

rapgro commented 2 years ago

https://github.com/andreikop/qutepart/blob/089b2c9d60a37663f37275b3ecddb95c9edba2a2/qutepart/margins.py#L76

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 commented 2 years ago

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