Skip to content

Commit

Permalink
Merge pull request #445 from ebrahimraeyat/master
Browse files Browse the repository at this point in the history
Remove No module named 'PySide.QtWidgets' error in earlier versions of FreeCAD
  • Loading branch information
howetuft authored Sep 2, 2024
2 parents 0b0c74d + 6ca39c8 commit 7b93d87
Showing 1 changed file with 16 additions and 29 deletions.
45 changes: 16 additions & 29 deletions Render/subcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
import FreeCADGui as Gui
import FreeCAD as App

from Render.constants import FCDVERSION, PLUGINDIR, PARAMS
from Render.constants import PLUGINDIR, PARAMS
from Render.virtualenv import (
get_venv_python,
get_venv_pyside_version,
Expand All @@ -60,34 +60,21 @@
from Render.material import make_material
from Render.lights import ImageLight

if FCDVERSION > (0, 19):
from PySide.QtCore import (
QProcess,
QProcessEnvironment,
QObject,
Signal,
Slot,
Qt,
QEventLoop,
)
from PySide.QtWidgets import QWidget
from PySide.QtGui import QWindow, QMdiSubWindow, QGuiApplication
else:
from PySide.QtCore import (
QProcess,
QProcessEnvironment,
QObject,
Signal,
Slot,
Qt,
QEventLoop,
)
from PySide.QtGui import (
QWidget,
QWindow,
QMdiSubWindow,
QGuiApplication,
)
from PySide.QtCore import (
QProcess,
QProcessEnvironment,
QObject,
Signal,
Slot,
Qt,
QEventLoop,
)
from PySide.QtGui import (
QWidget,
QWindow,
QMdiSubWindow,
QGuiApplication,
)


class ConnectionServer(QObject):
Expand Down

0 comments on commit 7b93d87

Please sign in to comment.