From d2afd13c249599c67ab726a8bc9ef711c0bdde10 Mon Sep 17 00:00:00 2001 From: alby128 Date: Tue, 17 Oct 2017 10:35:26 +0200 Subject: [PATCH] Changed default order of bindings in Qt.py --- syncplay/ui/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/syncplay/ui/__init__.py b/syncplay/ui/__init__.py index f0c4c02..74885ff 100644 --- a/syncplay/ui/__init__.py +++ b/syncplay/ui/__init__.py @@ -1,3 +1,9 @@ +import os +if "QT_PREFERRED_BINDING" not in os.environ: + os.environ["QT_PREFERRED_BINDING"] = os.pathsep.join( + ["PySide2", "PySide", "PyQt5", "PyQt4"] + ) + try: from syncplay.ui.gui import MainWindow as GraphicalUI except ImportError: