Open alexfdo opened 4 years ago
When I add this code:
import os
os.environ["ICONIFY_QTLIB"] = "PyQt5"
and uncomment the lines, I get the following error: File "/home/alex/anaconda3/envs/lastrium/lib/python3.6/site-packages/iconify/anim.py", line 16, in GlobalTick timeout = QtCore.Signal() AttributeError: module 'PyQt5.QtCore' has no attribute 'Signal'
Greetings.
In principle, I ported the program to the PyQt5 and it practically works, but with some exceptions: I could not correctly translate line 336 from the core.py module to the terms PyQt5, in which the method
setAlphaChannel
was not implemented.
If we could solve this problem, the program will be able to work correctly with the PyQt5 API.
Stumbled upon with this cool module, unfortunately currently its only working fine with PySide2, not PyQt5. Also trying to port to PyQt5, but still some error occurs. Hope the author also investigate this bug.
You can try #3
Working code:
But if I uncomment the two lines instead of the line with comment 1, I immediately get the following error: TypeError: setIcon(self, QIcon): argument 1 has unexpected type 'PySide2.QtGui.QIcon'
I really liked the program, its ability to work with SVG directly and suddenly such OPS !!! What am I doing wrong?