Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from jpgill86/pyside2
Add PySide2 support
- Loading branch information
Showing
12 changed files
with
1,332 additions
and
134 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
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
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
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import sys | ||
|
||
|
||
if sys.version_info > (3,): | ||
# py3x Qt5 | ||
from . import icons_py3 as icons | ||
from ephyviewer.myqt import QT_MODE | ||
|
||
if QT_MODE == 'PyQt5': | ||
from . import icons_PyQt5 as icons | ||
elif QT_MODE == 'PySide2': | ||
from . import icons_PySide2 as icons | ||
elif QT_MODE == 'PyQt4': | ||
from . import icons_PyQt4 as icons | ||
else: | ||
# py27 Qt4 | ||
from . import icons_py2_Qt4 as icons | ||
|
||
|
||
# TODO : make py3_Qt4 (normally never the case) | ||
|
||
raise ValueError('Could not load icons for unrecognized QT_MODE: ' + QT_MODE) |
File renamed without changes.
Oops, something went wrong.