mottosso / Qt.py

Minimal Python 2 & 3 shim around all Qt bindings - PySide, PySide2, PyQt4 and PyQt5.
MIT License
896 stars 252 forks source link

Convert does not convert files built with pyside2-uic 5.15.2 #387

Open stevenjking opened 1 year ago

stevenjking commented 1 year ago

Files built using pyside2-uic 5.15.2 are not handled by qt.py --convert as the PySide2 imports are in the format from Pyside2.QtCore import * rather than the supported from Pyside2 import QtCore

## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide2.QtCore import *
from PySide2.QtGui import *
from PySide2.QtWidgets import *
mottosso commented 1 year ago

Thanks for reporting this, a pull request is most welcome!