andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

python 3.10 enforces explicit float-to-int casting #473

Closed rapgro closed 2 years ago

rapgro commented 2 years ago

https://github.com/andreikop/enki/blob/aafee43a1d4c9d8f4e15055b1e13a20578d990ce/enki/widgets/dockwidget.py#L46

No idea but multiplication gives a float when compiled with python 3.10

Please use instead a workaround as in self.setIconSize(QSize(int(textHeight * 0.8), int(textHeight * 0.8)))

andreikop commented 2 years ago

Will look soon

andreikop commented 2 years ago

Hi

I've fixed the bug and released a version Checkout master

Btw, @rapgro, I've migrated from Mint to Fedora 35 and it is amazing!

rapgro commented 2 years ago

Btw, @rapgro, I've migrated from Mint to Fedora 35 and it is amazing!

@andreikop Thanks for the fixes here and in https://github.com/andreikop/qutepart/issues/91. I'm happy to can help with my packages. Are you maybe interested to become co-maintainer of Fedora packages?