Removed PyQt support from Qt.py
This commit is contained in:
parent
b31b4305a2
commit
8bcd527f57
@ -403,9 +403,11 @@ class ConfigurationGetter(object):
|
|||||||
self._overrideConfigWithArgs(args)
|
self._overrideConfigWithArgs(args)
|
||||||
if not self._config['noGui']:
|
if not self._config['noGui']:
|
||||||
try:
|
try:
|
||||||
from syncplay.vendor.Qt import QtWidgets
|
from syncplay.vendor.Qt import QtWidgets, IsPySide, IsPySide2
|
||||||
from syncplay.vendor.Qt.QtCore import QCoreApplication
|
from syncplay.vendor.Qt.QtCore import QCoreApplication
|
||||||
from syncplay.vendor import qt5reactor
|
from syncplay.vendor import qt5reactor
|
||||||
|
if not (IsPySide2 or IsPySide):
|
||||||
|
raise ImportError
|
||||||
if QCoreApplication.instance() is None:
|
if QCoreApplication.instance() is None:
|
||||||
self.app = QtWidgets.QApplication(sys.argv)
|
self.app = QtWidgets.QApplication(sys.argv)
|
||||||
qt5reactor.install()
|
qt5reactor.install()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user