fixes ImportError on importing pysideuic
This commit is contained in:
parent
aa50296b9f
commit
d873ee6b26
@ -100,9 +100,12 @@ def _loadUiType(uiFile):
|
||||
how to make PyQt4 and pyside look the same...
|
||||
http://stackoverflow.com/a/8717832
|
||||
"""
|
||||
|
||||
if QT_LIB == "PYSIDE":
|
||||
import pysideuic
|
||||
else:
|
||||
import pyside2uic as pysideuic
|
||||
import xml.etree.ElementTree as xml
|
||||
#from io import StringIO
|
||||
|
||||
parsed = xml.parse(uiFile)
|
||||
widget_class = parsed.find('widget').get('class')
|
||||
|
Loading…
Reference in New Issue
Block a user