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

Suggestion: use qtpy for abstracting the qt implementation #127

Closed
mbuijs opened this issue Apr 12, 2018 · 4 comments
Closed

Suggestion: use qtpy for abstracting the qt implementation #127

mbuijs opened this issue Apr 12, 2018 · 4 comments
Assignees
Milestone

Comments

@mbuijs
Copy link
Contributor

mbuijs commented Apr 12, 2018

From the Spyder project there is the qtpy abstraction layer that lets you write code as if PyQt5 is imported, but run with Qt4 under the hood. This can simplify some parts of the code, taking away some if statements. Additionally the ambiguous import warnings that Spyder gives when opening the project ("QListWidget exists in both PyQt4 and PyQt5") would be gone also.

@wkentaro wkentaro self-assigned this Apr 13, 2018
@wkentaro
Copy link
Owner

@wkentaro
Copy link
Owner

54863e2 made the .qrc file no longer necessary.

@wkentaro
Copy link
Owner

Do you have some idea what library is better for this?
There is a comparison matrix at mottosso/Qt.py:
https://github.com/mottosso/Qt.py#projects-similar-to-qtpy

@wkentaro
Copy link
Owner

@jbvo Thank you for the suggestion! This is supported via #130 .

@wkentaro wkentaro added this to the 2.12.0 milestone Apr 15, 2018
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