-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright © 2009- The Spyder Development Team | ||
# | ||
# Licensed under the terms of the MIT License | ||
# (see LICENSE.txt for details) | ||
|
||
"""QtHelp Wrapper.""" | ||
|
||
from . import PYQT5 | ||
from . import PYQT4 | ||
from . import PYSIDE | ||
from . import PYSIDE2 | ||
|
||
if PYQT5: | ||
from PyQt5.QtHelp import * | ||
elif PYSIDE2: | ||
# Current wheels don't have this module | ||
# from PySide2.QtHelp | ||
pass | ||
elif PYQT4: | ||
from PyQt4.QtHelp import * | ||
elif PYSIDE: | ||
from PySide.QtHelp import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"""Test for QtHelp namespace.""" | ||
|
||
from __future__ import absolute_import | ||
|
||
import pytest | ||
from qtpy import PYSIDE2, QtHelp | ||
|
||
|
||
@pytest.mark.skipif(PYSIDE2, reason="QtHelp bind is missing in PySide2") | ||
def test_qthelp(): | ||
"""Test the qtpy.QtHelp namespace.""" | ||
assert QtHelp.QHelpContentItem is not None | ||
assert QtHelp.QHelpContentModel is not None | ||
assert QtHelp.QHelpContentWidget is not None | ||
assert QtHelp.QHelpEngine is not None | ||
assert QtHelp.QHelpEngineCore is not None | ||
assert QtHelp.QHelpIndexModel is not None | ||
assert QtHelp.QHelpIndexWidget is not None | ||
assert QtHelp.QHelpSearchEngine is not None | ||
assert QtHelp.QHelpSearchQuery is not None | ||
assert QtHelp.QHelpSearchQueryWidget is not None | ||
assert QtHelp.QHelpSearchResultWidget is not None |