From 7c81beb1bac61a1d24d5a6313e9fcfcf42146e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Bra=C3=B1a?= Date: Sun, 3 May 2026 00:22:31 +0200 Subject: [PATCH] =?UTF-8?q?PVPlant:=20PySide2=20->=20PySide=20gen=C3=A9ric?= =?UTF-8?q?o=20(FreeCAD=20resuelve=20el=20binding),=20eliminado=20de=20req?= =?UTF-8?q?uirements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ PVPlantGeoreferencing.py | 4 ++-- PVPlantPlacement.py | 4 ++-- docgenerator.py | 4 ++-- requirements.txt | 1 - 5 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a60b85 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +*.pyc diff --git a/PVPlantGeoreferencing.py b/PVPlantGeoreferencing.py index 7885931..e5887bc 100644 --- a/PVPlantGeoreferencing.py +++ b/PVPlantGeoreferencing.py @@ -58,8 +58,8 @@ class MapWindow(QtGui.QWidget): self.setupUi() def setupUi(self): - from PySide2.QtWebEngineWidgets import QWebEngineView - from PySide2.QtWebChannel import QWebChannel + from PySide.QtWebEngineWidgets import QWebEngineView + from PySide.QtWebChannel import QWebChannel self.ui = FreeCADGui.PySideUic.loadUi(PVPlantResources.__dir__ + "/PVPlantGeoreferencing.ui", self) diff --git a/PVPlantPlacement.py b/PVPlantPlacement.py index f130245..1a03175 100644 --- a/PVPlantPlacement.py +++ b/PVPlantPlacement.py @@ -1164,8 +1164,8 @@ from scipy.interpolate import LinearNDInterpolator import Part import FreeCAD import FreeCADGui -from PySide2 import QtCore, QtGui -from PySide2.QtWidgets import QListWidgetItem +from PySide import QtCore, QtGui +from PySide.QtWidgets import QListWidgetItem import os import PVPlantResources diff --git a/docgenerator.py b/docgenerator.py index 0bc7f66..e3eda02 100644 --- a/docgenerator.py +++ b/docgenerator.py @@ -1,8 +1,8 @@ # Script para FreeCAD - Procesador de Documentos Word con CarĂ¡tula import os import glob -from PySide2 import QtWidgets, QtCore -from PySide2.QtWidgets import (QFileDialog, QMessageBox, QProgressDialog, +from PySide import QtWidgets, QtCore +from PySide.QtWidgets import (QFileDialog, QMessageBox, QProgressDialog, QApplication, QVBoxLayout, QWidget, QPushButton, QLabel, QTextEdit) import FreeCAD diff --git a/requirements.txt b/requirements.txt index 7b992cb..9700849 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ opencv-python~=4.8.1 matplotlib~=3.8.2 openpyxl~=3.1.2 utm~=0.7.0 -PySide2~=5.15.8 requests~=2.31.0 setuptools~=68.2.2 laspy~=2.5.3