X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fqvariant_converter.py;h=8ff5be3c617b6d1015c52371d971c2bfe5f42ab5;hb=75fbf8837e509b76d1489d0be4c3471d718cc352;hp=8c4cfd87bf0fa0c405e952e0b0aebab926247363;hpb=df3bd7f742da8c015304fa21e01eb966ff76a089;p=bertos.git diff --git a/wizard/qvariant_converter.py b/wizard/qvariant_converter.py index 8c4cfd87..8ff5be3c 100644 --- a/wizard/qvariant_converter.py +++ b/wizard/qvariant_converter.py @@ -35,7 +35,14 @@ from PyQt4.QtCore import PYQT_VERSION_STR -if PYQT_VERSION_STR > "4.4.3": - from qvariant_converter_new import * -else: +# Choose the right version of the qvariant_converter module. It's awful, +# I know, but this is the only solution in order to mantain compatibility +# with older PyQt4 version. +if PYQT_VERSION_STR <= "4.4.3": from qvariant_converter_old import * +elif "4.4.3" < PYQT_VERSION_STR < "4.5": + from qvariant_converter_4_4 import * +elif "4.5" <= PYQT_VERSION_STR < "4.6": + from qvariant_converter_4_5 import * +else: + from qvariant_converter_4_6 import *