Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove trailing spaces
code cleanup
  • Loading branch information
lorenzo angeli committed Aug 25, 2016
commit 102ad2836d513482bd938fc7eb4f12007c4980a0
6 changes: 2 additions & 4 deletions Qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _pyqt4():
PyQt4.QtCore.Property = PyQt4.QtCore.pyqtProperty
PyQt4.QtCore.QItemSelection = PyQt4.QtGui.QItemSelection
PyQt4.QtCore.QItemSelectionModel = PyQt4.QtGui.QItemSelectionModel

try:
from PyQt4 import QtWebKit
PyQt4.QtWebKitWidgets = QtWebKit
Expand Down Expand Up @@ -225,18 +225,16 @@ def _init():
this has executed.

"""

preferred = os.getenv("QT_PREFERRED_BINDING")
verbose = os.getenv("QT_VERBOSE") is not None
bindings = (_pyside2, _pyqt5, _pyside, _pyqt4)

if preferred:

# Internal flag (used in installer)
if preferred == "None":
sys.modules[__name__].__wrapper_version__ = __version__
return

preferred = preferred.split(os.pathsep)
available = {
"PySide2": _pyside2,
Expand Down