Ich habe es aus dem Grund gemacht das dann der Benutzer nicht extra pyQt5 installieren muss wenn er schon pyQt4 auf dem Rechner hat.
Code: Alles auswählen
try:
from PyQt5 import QtGui, QtCore, QtWidgets, uic
print ("pyQt5")
except ImportError:
from PyQt4 import QtGui as QtWidgets
from PyQt4 import QtGui, QtCore, uic
print ("pyQt4")
QtWidgets.QDialog.__init__(self)
https://github.com/MarkusHackspacher/pyLottoSimu
http://markush.cwsurf.de/joomla_17/inde ... -simulator