PR: Add QtPdf and QtPdfWidgets#382
Conversation
00cfb36 to
7eb9194
Compare
There was a problem hiding this comment.
Thanks @jschueller for helping with this! Checking, I think that the QtPdf and QtPdfWidgets modules are only available in PyQt6 and PySide6 >=6.4.0. Taking that into account, maybe we should put in place a try-catch for the PyQt6 and PySide6 import calls and raise a QtBindingMissingModuleError in case of an ImportError? What do you think?
Beside that, could you rebase on top of the latest master, please? That should fix the failing test.
Other than the above this LGTM 👍
Closes spyder-ide#381
|
ok, I rebased |
|
Thanks for the quick response! And regarding raising |
|
thtat's not what is done for other modules, let's keep it simple |
dalthviz
left a comment
There was a problem hiding this comment.
Thanks again @jschueller for your help with this! Thinking a little bit more, there is no need to hold this for being merged. Indeed, keeping things simple is better, and actually there is no qtpy error implemented that encapsulates the case of a module not being available in a specific binding version (maybe in the future we could add it but for the moment the ModuleNotFoundError should be fine 👍🏼 )
Closes #381