import re
import types, sys, os
import traceback
-from . import typeNode
+from InterfaceGUI.QT5 import typeNode
from PyQt5.QtWidgets import QTreeWidget, QTreeWidgetItem, QApplication, QMessageBox
from PyQt5.QtCore import Qt
from Extensions.i18n import tr
-from .gereRegles import GereRegles
-from .monChoixCommande import MonChoixCommande
+from InterfaceGUI.QT5.gereRegles import GereRegles
+from InterfaceGUI.QT5.monChoixCommande import MonChoixCommande
# ------------------------------------------
self.editor.fenetreCentraleAffichee.close()
self.editor.fenetreCentraleAffichee.deleteLater()
- from monWidgetNiveauFact import MonWidgetNiveauFact, MonWidgetNiveauFactTableau
+ from InterfaceGUI.QT5.monWidgetNiveauFact import MonWidgetNiveauFact, MonWidgetNiveauFactTableau
maDefinition = self.item.get_definition()
monObjet = self.item.object
# print ('_________________ds affichePanneau pour', self.item.nom)
# pour l instant pas d inactif
if not (self.item.isActif()):
- from .monWidgetInactif import MonWidgetInactif
+ from InterfaceGUI.QT5.monWidgetInactif import MonWidgetInactif
self.fenetre = MonWidgetInactif(self, self.editor)
else:
# -----------------
# print "je mets inhibeExpand a true dans setPlie"
# print ("je suis dans plieTout", self.item.getNom())
- from . import compojdc
+ from InterfaceGUI.QT5 import compojdc
if self.fenetre == self.editor.fenetreCentraleAffichee and isinstance(
self.treeParent, compojdc.Node
from Editeur import Objecttreeitem
-from . import compofact
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import compofact
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
class Node(browser.JDCNode, typeNode.PopUpMenuNodeMinimal):
self.niveau = parentQt.niveau + 1
else:
self.niveau = 1
- from .monWidgetBloc import MonWidgetBloc
+ from InterfaceGUI.QT5.monWidgetBloc import MonWidgetBloc
widget = MonWidgetBloc(
self, self.editor, parentQt, maDefinition, monObjet, self.niveau, maCommande
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
from Editeur import Objecttreeitem
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
from Extensions.i18n import tr
from Extensions.eficas_exception import EficasException
class Node(browser.JDCNode, typeNode.PopUpMenuNodePartiel):
def getPanel(self):
""" """
- from .monWidgetCommentaire import MonWidgetCommentaire
+ from InterfaceGUI.QT5.monWidgetCommentaire import MonWidgetCommentaire
return MonWidgetCommentaire(self, self.editor, self.item.object)
from Editeur import Objecttreeitem
from Extensions.eficas_exception import EficasException
-from . import compocomm
+from InterfaceGUI.QT5 import compocomm
class COMMANDE_COMMTreeItem(Objecttreeitem.ObjectTreeItem):
else:
self.niveau = 1
if hasattr(self, "plie") and self.plie == True:
- from InterfaceGUI.QT5.monWidgetFactPlie import MonWidgetFactPlie
+ from InterfaceGUI.QT5.nterfaceGUI.QT5.monWidgetFactPlie import MonWidgetFactPlie
widget = MonWidgetFactPlie(
self,
elif self.editor.maConfiguration.afficheFirstPlies and self.firstAffiche:
self.firstAffiche = False
self.setPlie()
- from InterfaceGUI.QT5.monWidgetFactPlie import MonWidgetFactPlie
+ from InterfaceGUI.QT5.nterfaceGUI.QT5.monWidgetFactPlie import MonWidgetFactPlie
widget = MonWidgetFactPlie(
self,
maCommande,
)
else:
- from InterfaceGUI.QT5.monWidgetFact import MonWidgetFact
+ from InterfaceGUI.QT5.nterfaceGUI.QT5.monWidgetFact import MonWidgetFact
widget = MonWidgetFact(
self,
d'EFICAS
"""
-from . import compooper
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import compooper
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
class FormuleNode(browser.JDCNode, typeNode.PopUpMenuNode):
def getPanel(self):
- from .monWidgetFormule import MonWidgetFormule
+ from InterfaceGUI.QT5.monWidgetFormule import MonWidgetFormule
return MonWidgetFormule(self, self.editor, self.item.object)
#
from Editeur import Objecttreeitem
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
from Extensions.i18n import tr
class Node(browser.JDCNode, typeNode.PopUpMenuRacine):
def getPanel(self):
- from .monChoixCommande import MonChoixCommande
+ from InterfaceGUI.QT5.monChoixCommande import MonChoixCommande
return MonChoixCommande(self, self.item, self.editor)
def createPopUpMenu(self):
class MACRONode(browser.JDCNode, typeNode.PopUpMenuNode):
def getPanel(self):
- from .monWidgetCommande import MonWidgetCommande
+ from InterfaceGUI.QT5.monWidgetCommande import MonWidgetCommande
return MonWidgetCommande(self, self.editor, self.item.object)
# def view3D(self) :
-# from Editeur import TroisDPal
+# from InterfaceGUI.QT5.Editeur import TroisDPal
# troisD=TroisDPal.TroisDPilote(self.item,self.editor.appliEficas)
# troisD.envoievisu()
class INCLUDENode(browser.JDCNode, typeNode.PopUpMenuNode):
def getPanel(self):
- from .monWidgetCommande import MonWidgetCommande
+ from InterfaceGUI.QT5.monWidgetCommande import MonWidgetCommande
return MonWidgetCommande(self, self.editor, self.item.object)
class POURSUITENode(browser.JDCNode, typeNode.PopUpMenuNode):
def getPanel(self):
- from .monWidgetCommande import MonWidgetCommande
+ from InterfaceGUI.QT5.monWidgetCommande import MonWidgetCommande
return MonWidgetCommande(self, self.editor, self.item.object)
class MATERIAUNode(MACRONode):
def getPanel(self):
- from .monWidgetCommande import MonWidgetCommande
+ from InterfaceGUI.QT5.monWidgetCommande import MonWidgetCommande
return MonWidgetCommande(self, self.editor, self.item.object)
f = open(self.item.object.fichier_ini, "rb")
texte = f.read()
f.close()
- from desVisu import DVisu
+ from InterfaceGUI.QT5.desVisu import DVisu
monVisuDialg = DVisu(parent=self.editor.appliEficas, fl=0)
monVisuDialg.TB.setText(texte)
import types
import traceback
-from . import compofact
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import compofact
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
from Extensions.i18n import tr
from Editeur import Objecttreeitem
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from builtins import str
import os
import tempfile
from Extensions.eficas_exception import EficasException
from Editeur import Objecttreeitem
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
class Node(browser.JDCNode, typeNode.PopUpMenuNode):
pass
def getPanel(self):
- from .monWidgetCommande import MonWidgetCommande
+ from InterfaceGUI.QT5.monWidgetCommande import MonWidgetCommande
return MonWidgetCommande(self, self.editor, self.item.object)
# def view3D(self) :
-# from Editeur import TroisDPal
+# from InterfaceGUI.QT5.Editeur import TroisDPal
# troisD=TroisDPal.TroisDPilote(self.item,self.editor.appliEficas)
# troisD.envoievisu()
# import modules EFICAS
from Editeur import Objecttreeitem
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
class Node(browser.JDCNode, typeNode.PopUpMenuNodePartiel):
def getPanel(self):
""" """
- from .monWidgetParam import MonWidgetParam
+ from InterfaceGUI.QT5.monWidgetParam import MonWidgetParam
return MonWidgetParam(self, self.editor, self.item.object)
#
from Editeur import Objecttreeitem
-from . import compooper
-from . import browser
-from . import typeNode
+from InterfaceGUI.QT5 import compooper
+from InterfaceGUI.QT5 import browser
+from InterfaceGUI.QT5 import typeNode
class Node(browser.JDCNode, typeNode.PopUpMenuNode):
def getPanel(self):
# print "getPanel de compoproc"
- from .monWidgetCommande import MonWidgetCommande
+ from InterfaceGUI.QT5.monWidgetCommande import MonWidgetCommande
return MonWidgetCommande(self, self.editor, self.item.object)
return None
# label informatif
if monObjet.isInformation():
- from InterfaceGUI.QT5.monWidgetInfo import MonWidgetInfo
+ from InterfaceGUI.QT5.nterfaceGUI.QT5.monWidgetInfo import MonWidgetInfo
widget = MonWidgetInfo(
self, maDefinition, monNom, monObjet, parentQt, maCommande
from Editeur import Objecttreeitem
from InterfaceGUI.QT5 import browser
-from desBaseWidget import Ui_baseWidget
+from UiQT5.desBaseWidget import Ui_baseWidget
from InterfaceGUI.QT5.monViewTexte import ViewText
-from monWidgetCreeParam import MonWidgetCreeParam
+from InterfaceGUI.QT5.monWidgetCreeParam import MonWidgetCreeParam
DictExtensions = {"MAP": ".map", "TELEMAC": ".cas"}
debug = False
# ---------------------#
def handleRechercher(self):
# ---------------------#
- from .monRecherche import DRecherche
+ from InterfaceGUI.QT5.monRecherche import DRecherche
monRechercheDialg = DRecherche(parent=self, fl=0)
monRechercheDialg.show()
# --------------------------------#
def handleRechercherDsCatalogue(self):
# -----------------------------#
- from .monRechercheCatalogue import DRechercheCatalogue
+ from InterfaceGUI.QT5.monRechercheCatalogue import DRechercheCatalogue
monRechercheDialg = DRechercheCatalogue(self.QWParent, self)
monRechercheDialg.show()
# -----------------------------------------#
try:
# if 1:
- from ajoutGroupe import handleAjoutGroupFiltre
+ from InterfaceGUI.QT5.ajoutGroupe import handleAjoutGroupFiltre
# print listeGroup
handleAjoutGroupFiltre(self, listeGroup)
print("in runPSEN_N1", dico)
print(dico)
- from Run import run
+ from InterfaceGUI.QT5.un import run
run(dico)
# res,txt_exception=run(dico)
from Extensions.i18n import tr
-from .gereIcones import ContientIcones
-from .gereIcones import FacultatifOuOptionnel
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.gereIcones import ContientIcones
+from InterfaceGUI.QT5.gereIcones import FacultatifOuOptionnel
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
nomMax = 230
icon = QIcon(self.repIcon + "/point-interrogation30.png")
self.RBInfo.setIcon(icon)
- from .monWidgetCommande import MonWidgetCommande
+ from InterfaceGUI.QT5.monWidgetCommande import MonWidgetCommande
if isinstance(self, MonWidgetCommande) and self.editor.code == "MAP":
self.cle_doc = self.chercheDocMAP()
else:
fichier = self.lineEditVal.text()
if fichier == None or str(fichier) == "":
return
- from .monViewTexte import ViewText
+ from InterfaceGUI.QT5.monViewTexte import ViewText
try:
if sys.platform[0:5] == "linux":
self.LEvaleurPressed()
def BSelectInFilePressed(self):
- from monSelectImage import MonSelectImage
-
+ from InterfaceGUI.QT5.monSelectImage import MonSelectImage
MonSelectImage(file=self.image, parent=self).show()
def BSalomePressed(self):
def BParametresPressed(self):
liste = self.node.item.getListeParamPossible()
- from monListeParamPanel import MonListeParamPanel
-
+ from InterfaceGUI.QT5.monListeParamPanel import MonListeParamPanel
MonListeParamPanel(liste=liste, parent=self).show()
ulfile = os.path.abspath(fn)
self.editor.maConfiguration.savedir = os.path.split(ulfile)[0]
- from .monSelectVal import MonSelectVal
+ from InterfaceGUI.QT5.monSelectVal import MonSelectVal
MonSelectVal(file=fn, parent=self).show()
ulfile = os.path.abspath(six.text_type(fn))
self.editor.maConfiguration.savedir = os.path.split(ulfile)[0]
- from .monSelectVal import MonSelectVal
+ from InterfaceGUI.QT5.monSelectVal import MonSelectVal
MonSelectVal(file=fn, parent=self).show()
except:
pass
- from .monVisu import DVisu
+ from InterfaceGUI.QT5.monVisu import DVisu
titre = "conversion de " + FichieraTraduire
monVisuDialg = DVisu(parent=editor.appliEficas, fl=0)
from Extensions.i18n import tr
-from .gereIcones import FacultatifOuOptionnel
+from InterfaceGUI.QT5.gereIcones import FacultatifOuOptionnel
import traceback
# ce cas est le cas machine tournant sr le plie
try:
while i < self.commandesLayout.count():
- from .monWidgetBloc import MonWidgetBloc
+ from InterfaceGUI.QT5.monWidgetBloc import MonWidgetBloc
widget = self.commandesLayout.itemAt(i).widget()
i = i + 1
# Modules Python
# Modules Eficas
-from desChoixCata import Ui_DChoixCata
+from InterfaceGUI.QT5.desChoixCata import Ui_DChoixCata
from PyQt5.QtWidgets import QDialog
from Extensions.i18n import tr
import os, sys, re
-from desChoixCode import Ui_ChoixCode
+from InterfaceGUI.QT5.desChoixCode import Ui_ChoixCode
from PyQt5.QtWidgets import QDialog, QRadioButton, QGroupBox, QButtonGroup
from PyQt5.QtGui import QPalette
from PyQt5.QtCore import QProcess, QFileInfo, Qt, QSize
# Modules Python
# Modules Eficas
-from desChoixCommandes import Ui_ChoixCommandes
+from UiQT5.desChoixCommandes import Ui_ChoixCommandes
from PyQt5.QtWidgets import QWidget, QButtonGroup, QRadioButton, QLabel, QPushButton, QGridLayout
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtCore import QSize, QRect
import os, sys, re
-from desChoixLangue import Ui_ChoixLangue
+from InterfaceGUI.QT5.desChoixLangue import Ui_ChoixLangue
from PyQt5.QtWidgets import QDialog, QRadioButton, QGroupBox, QButtonGroup
from PyQt5.QtGui import QPalette
# Modules Eficas
-from .qtSaisie import SaisieValeur
-from monPlusieursBasePanel import MonPlusieursBasePanel
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.monPlusieursBasePanel import MonPlusieursBasePanel
from Extensions.i18n import tr
from PyQt5.QtGui import QPalette
from Extensions.i18n import tr
-from desGroupeOptionnel import Ui_groupeOptionnel
-from desPBOptionnelMT import Ui_customPB
+from InterfaceGUI.QT5.desGroupeOptionnel import Ui_groupeOptionnel
+from InterfaceGUI.QT5.desPBOptionnelMT import Ui_customPB
# Import des panels
# Modules Python
# Modules Eficas
-from desRecherche import Ui_desRecherche
+from InterfaceGUI.QT5.desRecherche import Ui_desRecherche
from PyQt5.QtWidgets import QDialog
from PyQt5.QtCore import Qt
# Modules Python
# Modules Eficas
-from desRechercheCatalogue import Ui_desRechercheCatalogue
+from InterfaceGUI.QT5.desRechercheCatalogue import Ui_desRechercheCatalogue
from PyQt5.QtWidgets import QDialog, QCompleter
from PyQt5.QtCore import Qt
# Modules Python
# Modules Eficas
-from desSelectVal import Ui_DSelVal
+from InterfaceGUI.QT5.desSelectVal import Ui_DSelVal
from Extensions.i18n import tr
from PyQt5.QtWidgets import QDialog, QFileDialog, QMessageBox
from Extensions.i18n import tr
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QDialog, QListWidgetItem
-from desViewRegles import Ui_viewRegles
+from UiQT5.desViewRegles import Ui_viewRegles
# ------------------------------------ #
from PyQt5.QtWidgets import QDialog, QMessageBox, QFileDialog
from PyQt5.QtCore import QSize
-from desViewTexte import Ui_dView
+from UiQT5.desViewTexte import Ui_dView
# ------------------------------- #
# Modules Eficas
-from desVisu import Ui_DVisu
+from InterfaceGUI.QT5.desVisu import Ui_DVisu
from PyQt5.QtWidgets import QDialog
# Modules Eficas
from Extensions.i18n import tr
-from .monWidgetRadioButton import MonWidgetRadioButtonCommun
-from desWidget4a6RadioButton import Ui_Widget4a6RadioButton
+from InterfaceGUI.QT5.monWidgetRadioButton import MonWidgetRadioButtonCommun
+from UiQT5.desWidget4a6RadioButton import Ui_Widget4a6RadioButton
class MonWidget4a6RadioButton(Ui_Widget4a6RadioButton, MonWidgetRadioButtonCommun):
# Modules Eficas
from Extensions.i18n import tr
-from .monWidgetRadioButton import MonWidgetRadioButtonCommun
-from desWidget4a6RadioButton import Ui_Widget4a6RadioButton
+from InterfaceGUI.QT5.monWidgetRadioButton import MonWidgetRadioButtonCommun
+from UiQT5.desWidget4a6RadioButton import Ui_Widget4a6RadioButton
class MonWidget4a6RadioButtonSD(Ui_Widget4a6RadioButton, MonWidgetRadioButtonCommun):
# Modules Eficas
-from desWidgetBloc import Ui_WidgetBloc
-from .groupe import Groupe
+from InterfaceGUI.QT5.desWidgetBloc import Ui_WidgetBloc
+from InterfaceGUI.QT5.groupe import Groupe
from Extensions.i18n import tr
# Import des panels
from Extensions.i18n import tr
from InterfaceGUI.QT5.feuille import Feuille
-from desWidgetCB import Ui_WidgetCB
+from UiQT5.desWidgetCB import Ui_WidgetCB
from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
from InterfaceGUI.QT5.qtSaisie import SaisieValeur
# Modules Eficas
from Extensions.i18n import tr
-from .feuille import Feuille
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieValeur
-from desWidgetCBIntoSug import Ui_WidgetCBIntoSug
+from InterfaceGUI.QT5.feuille import Feuille
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
+from UiQT5.desWidgetCBIntoSug import Ui_WidgetCBIntoSug
from PyQt5.QtWidgets import QComboBox, QCompleter
from PyQt5.QtCore import Qt
-from monWidgetCB import MonWidgetCBCommun
-from monWidgetIntoSug import GereAjoutDsPossible
+from InterfaceGUI.QT5.monWidgetCB import MonWidgetCBCommun
+from InterfaceGUI.QT5.monWidgetIntoSug import GereAjoutDsPossible
class MonWidgetCBIntoSug(MonWidgetCBCommun, Ui_WidgetCBIntoSug, GereAjoutDsPossible):
# Modules Eficas
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetCB import Ui_WidgetCB
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetCB import Ui_WidgetCB
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
from PyQt5.QtWidgets import QComboBox, QCompleter
import types
-from desWidgetCommande import Ui_WidgetCommande
-from .groupe import Groupe
-from .gereIcones import FacultatifOuOptionnel
+from UiQT5.desWidgetCommande import Ui_WidgetCommande
+from InterfaceGUI.QT5.groupe import Groupe
+from InterfaceGUI.QT5.gereIcones import FacultatifOuOptionnel
from PyQt5.QtWidgets import (
QApplication,
if self.editor.maConfiguration.pasDeMCOptionnels:
return # Pas de MC Optionnels pour Carmel
- from .monWidgetOptionnel import MonWidgetOptionnel
+ from InterfaceGUI.QT5.monWidgetOptionnel import MonWidgetOptionnel
if self.editor.widgetOptionnel != None:
self.monOptionnel = self.editor.widgetOptionnel
# Notation scientifique
if test:
- from .politiquesValidation import Validation
+ from InterfaceGUI.QT5.politiquesValidation import Validation
validation = Validation(self.node, self.editor)
validation.ajoutDsDictReelEtape()
from PyQt5.QtCore import Qt
from desWidgetCommentaire import Ui_WidgetCommentaire
-from .gereIcones import FacultatifOuOptionnel
+from InterfaceGUI.QT5.gereIcones import FacultatifOuOptionnel
from Extensions.i18n import tr
import Accas
import os
from PyQt5.QtWidgets import QDialog, QMessageBox
from PyQt5.QtCore import Qt
from Extensions.i18n import tr
-from desWidgetCreeParam import Ui_desWidgetCreeParam
+from UiQT5.desWidgetCreeParam import Ui_desWidgetCreeParam
class MonWidgetCreeParam(Ui_desWidgetCreeParam, QDialog):
valString = str(self.lineEditVal.text())
self.val = ""
contexte = {}
- exec("from math import *", contexte)
+ exec("from InterfaceGUI.QT5.ath import *", contexte)
jdc = self.editor.jdc
if jdc == None:
self.editor.afficheInfos(
# Modules Eficas
from Extensions.i18n import tr
-from .monWidgetSimpTxt import MonWidgetSimpTxt
-from .monWidgetPlusieursBase import MonWidgetPlusieursBase
+from InterfaceGUI.QT5.monWidgetSimpTxt import MonWidgetSimpTxt
+from InterfaceGUI.QT5.monWidgetPlusieursBase import MonWidgetPlusieursBase
from copy import copy, deepcopy
from PyQt5.QtCore import Qt
# Modules Eficas
from Extensions.i18n import tr
-from .feuille import Feuille
-from .monWidgetSimpTuple import MonWidgetSimpTuple
-from desWidgetDate import Ui_WidgetDate
+from InterfaceGUI.QT5.feuille import Feuille
+from InterfaceGUI.QT5.monWidgetSimpTuple import MonWidgetSimpTuple
+from UiQT5.desWidgetDate import Ui_WidgetDate
class MonWidgetDate(Ui_WidgetDate, MonWidgetSimpTuple):
from PyQt5.QtCore import Qt, QTimer
from PyQt5.QtWidgets import QWidget
-from .groupe import Groupe
-from desWidgetFact import Ui_WidgetFact
+from InterfaceGUI.QT5.groupe import Groupe
+from UiQT5.desWidgetFact import Ui_WidgetFact
from Extensions.i18n import tr
# Import des panels
def ajouteMCParPB(self):
texteListeNom = "+" + self.obj.nom
parentOuAjouter = self.parentQt
- from .monWidgetBloc import MonWidgetBloc
+ from InterfaceGUI.QT5.monWidgetBloc import MonWidgetBloc
while parentOuAjouter and isinstance(parentOuAjouter, MonWidgetBloc):
parentOuAjouter = parentOuAjouter.parentQt
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from desWidgetFactPlie import Ui_WidgetFactPlie
-from .groupe import Groupe
+from UiQT5.desWidgetFactPlie import Ui_WidgetFactPlie
+from InterfaceGUI.QT5.groupe import Groupe
from Extensions.i18n import tr
class MonWidgetFactPlie(Ui_WidgetFactPlie, Groupe):
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from desWidgetFormule import Ui_WidgetFormule
-from .gereIcones import FacultatifOuOptionnel
+from UiQT5.desWidgetFormule import Ui_WidgetFormule
+from InterfaceGUI.QT5.gereIcones import FacultatifOuOptionnel
from PyQt5.QtWidgets import QWidget
from PyQt5.QtGui import QIcon
# Modules Eficas
from Extensions.i18n import tr
-from .feuille import Feuille
-from .monWidgetSimpBase import MonWidgetSimpBase
-from desWidgetHeure import Ui_WidgetHeure
+from InterfaceGUI.QT5.feuille import Feuille
+from InterfaceGUI.QT5.monWidgetSimpBase import MonWidgetSimpBase
+from UiQT5.desWidgetHeure import Ui_WidgetHeure
class MonWidgetHeure(Ui_WidgetHeure, MonWidgetSimpBase):
from PyQt5.QtWidgets import QWidget
from Extensions.i18n import tr
-from desWidgetInactif import Ui_WidgetInactif
+from UiQT5.desWidgetInactif import Ui_WidgetInactif
import Accas
import os
self.node = node
self.editor = editor
self.setupUi(self)
- from .monWidgetOptionnel import MonWidgetOptionnel
+ from InterfaceGUI.QT5.monWidgetOptionnel import MonWidgetOptionnel
if self.editor.widgetOptionnel != None:
self.monOptionnel = self.editor.widgetOptionnel
from PyQt5.QtWidgets import QWidget
from Extensions.i18n import tr
-from desWidgetInformation import Ui_WidgetInformative
+from UiQT5.desWidgetInformation import Ui_WidgetInformative
class MonWidgetInfo(Ui_WidgetInformative, QWidget):
from Extensions.i18n import tr
-from desWidgetIntoSug import Ui_WidgetIntoSug
-from monWidgetPlusieursInto import MonWidgetPlusieursInto
+from UiQT5.desWidgetIntoSug import Ui_WidgetIntoSug
+from InterfaceGUI.QT5.monWidgetPlusieursInto import MonWidgetPlusieursInto
class GereAjoutDsPossible:
# Modules Eficas
from Extensions.i18n import tr
-from .feuille import Feuille
+from InterfaceGUI.QT5..feuille import Feuille
from Extensions.eficas_exception import EficasException
-from desWidgetMatrice import Ui_desWidgetMatrice
+from UiQT5.desWidgetMatrice import Ui_desWidgetMatrice
from PyQt5.QtCore import QSize, Qt
from PyQt5.QtWidgets import QTableWidgetItem, QTableWidget
from PyQt5.QtWidgets import QWidget
from PyQt5.QtGui import QIcon
-from desWidgetNiveauFact import Ui_WidgetNiveauFact
+from UiQT5.desWidgetNiveauFact import Ui_WidgetNiveauFact
from InterfaceGUI.QT5.monWidgetOptionnel import MonWidgetOptionnel
from InterfaceGUI.QT5.groupe import Groupe
from PyQt5.QtCore import Qt
from Extensions.i18n import tr
-from desWidgetOptionnel import Ui_WidgetOptionnel
-from .monGroupeOptionnel import MonGroupeOptionnel
+from UiQT5.desWidgetOptionnel import Ui_WidgetOptionnel
+from InterfaceQT5.QT5.monGroupeOptionnel import MonGroupeOptionnel
# Import des panels
import os, re
import types
-from desWidgetParam import Ui_WidgetParam
+from UiQT5.desWidgetParam import Ui_WidgetParam
from InterfaceGUI.QT5.gereIcones import FacultatifOuOptionnel
from PyQt5.QtWidgets import QWidget, QMessageBox
from PyQt5.QtGui import QIcon
valString = str(self.lineEditVal.text())
contexte = {}
- exec("from math import *", contexte)
+ exec("from InterfaceGUI.QT5.ath import *", contexte)
jdc = self.node.item.getJdc()
for p in jdc.params:
try:
# Modules Eficas
from Extensions.i18n import tr
-from .monWidgetPlusieursIntoOrdonne import MonWidgetPlusieursIntoOrdonne
-from .politiquesValidation import PolitiquePlusieurs
+from InterfaceGUI.QT5..monWidgetPlusieursIntoOrdonne import MonWidgetPlusieursIntoOrdonne
+from InterfaceGUI.QT5.politiquesValidation import PolitiquePlusieurs
-from six.moves import range
from PyQt5.QtWidgets import QScrollBar
from Extensions.i18n import tr
from InterfaceGUI.QT5.feuille import Feuille
-from desWidgetPlusieursBase import Ui_WidgetPlusieursBase
+from UiQT5.desWidgetPlusieursBase import Ui_WidgetPlusieursBase
from InterfaceGUI.QT5.politiquesValidation import PolitiquePlusieurs
from InterfaceGUI.QT5.qtSaisie import SaisieValeur
from InterfaceGUI.QT5.gereListe import GereListe
# Modules Eficas
from Extensions.i18n import tr
-from .monWidgetSimpTxt import MonWidgetSimpTxt
-from .monWidgetPlusieursBase import MonWidgetPlusieursBase
+from InterfaceGUI.QT5.monWidgetSimpTxt import MonWidgetSimpTxt
+from InterfaceGUI.QT5.monWidgetPlusieursBase import MonWidgetPlusieursBase
from copy import copy, deepcopy
from PyQt5.QtCore import Qt
from Extensions.i18n import tr
from InterfaceGUI.QT5.feuille import Feuille
-from desWidgetPlusieursInto import Ui_WidgetPlusieursInto
+from UiQT5.desWidgetPlusieursInto import Ui_WidgetPlusieursInto
from InterfaceGUI.QT5.politiquesValidation import PolitiquePlusieurs
from InterfaceGUI.QT5.qtSaisie import SaisieValeur
from InterfaceGUI.QT5.gereListe import GerePlie
import types, os
# Modules Eficas
-from .feuille import Feuille
-from desWidgetPlusieursIntoOrdonne import Ui_WidgetPlusieursIntoOrdonne
-from .politiquesValidation import PolitiquePlusieurs
-from .qtSaisie import SaisieValeur
-from .gereListe import GereListe
-from .gereListe import GerePlie
-from .gereListe import LECustom
-from .gereListe import MonLabelListeClic
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetPlusieursIntoOrdonne import Ui_WidgetPlusieursIntoOrdonne
+from InterfaceGUI.QT5.politiquesValidation import PolitiquePlusieurs
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.gereListe import GereListe
+from InterfaceGUI.QT5.gereListe import GerePlie
+from InterfaceGUI.QT5.gereListe import LECustom
+from InterfaceGUI.QT5.gereListe import MonLabelListeClic
from Extensions.i18n import tr
from PyQt5.QtWidgets import QFrame, QApplication, QScrollBar
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetPlusieursPlie import Ui_WidgetPlusieursPlie
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetPlusieursPlie import Ui_WidgetPlusieursPlie
-from .politiquesValidation import PolitiquePlusieurs
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.politiquesValidation import PolitiquePlusieurs
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
pattern_blanc = re.compile(r"^\s*$")
from Extensions.i18n import tr
-
from InterfaceGUI.QT5.feuille import Feuille
from InterfaceGUI.QT5.politiquesValidation import PolitiquePlusieurs
from InterfaceGUI.QT5.qtSaisie import SaisieValeur
from InterfaceGUI.QT5.gereListe import GereListe
from InterfaceGUI.QT5.gereListe import LECustom
-from Tuple2 import Ui_Tuple2
-from Tuple3 import Ui_Tuple3
-from Tuple4 import Ui_Tuple4
-from Tuple5 import Ui_Tuple5
-from Tuple6 import Ui_Tuple6
-from Tuple7 import Ui_Tuple7
-from Tuple8 import Ui_Tuple8
-from Tuple9 import Ui_Tuple9
-from Tuple10 import Ui_Tuple10
+from UiQT5.Tuple2 import Ui_Tuple2
+from UiQT5.Tuple3 import Ui_Tuple3
+from UiQT5.Tuple4 import Ui_Tuple4
+from UiQT5.Tuple5 import Ui_Tuple5
+from UiQT5.Tuple6 import Ui_Tuple6
+from UiQT5.Tuple7 import Ui_Tuple7
+from UiQT5.Tuple8 import Ui_Tuple8
+from UiQT5.Tuple9 import Ui_Tuple9
+from UiQT5.Tuple10 import Ui_Tuple10
# --------------------------
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-from .feuille import Feuille
-from .monWidgetPlusieursTuple import MonWidgetPlusieursTuple
-from desWidgetPlusieursTuple import Ui_WidgetPlusieursTuple
+from InterfaceGUI.QT5.feuille import Feuille
+from InterfaceGUI.QT5.monWidgetPlusieursTuple import MonWidgetPlusieursTuple
+from UiQT5.desWidgetPlusieursTuple import Ui_WidgetPlusieursTuple
class MonWidgetPlusieursTuple2(Ui_WidgetPlusieursTuple, MonWidgetPlusieursTuple):
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetRadioButton import Ui_WidgetRadioButton
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetRadioButton import Ui_WidgetRadioButton
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
class MonWidgetRadioButtonCommun(Feuille):
from PyQt5.QtCore import Qt
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetSDCOInto import Ui_WidgetSDCOInto
-from .qtSaisie import SaisieSDCO
-from .politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetSDCOInto import Ui_WidgetSDCOInto
+from InterfaceGUI.QT5.qtSaisie import SaisieSDCO
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
class MonWidgetSDCOInto(Ui_WidgetSDCOInto, Feuille, SaisieSDCO):
from PyQt5.QtCore import Qt
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetSimpBase import Ui_WidgetSimpBase
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetSimpBase import Ui_WidgetSimpBase
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
class MonWidgetSimpBase(Ui_WidgetSimpBase, Feuille):
chaine = ""
if valeurTexte != None:
- from decimal import Decimal
+ from InterfaceGUI.QT5.ecimal import Decimal
if isinstance(valeurTexte, Decimal):
chaine = str(valeurTexte)
from PyQt5.QtWidgets import QRadioButton
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetSimpBool import Ui_WidgetSimpBool
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.feuille import Feuille
+fromUiQT5.desWidgetSimpBool import Ui_WidgetSimpBool
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
class MonWidgetSimpBool(Ui_WidgetSimpBool, Feuille):
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetSimpComplexe import Ui_WidgetSimpComplexe
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetSimpComplexe import Ui_WidgetSimpComplexe
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
class MonWidgetSimpComplexe(Ui_WidgetSimpComplexe, Feuille):
from PyQt5.QtCore import QSize
from Extensions.i18n import tr
-from desWidgetSimpFichier import Ui_WidgetSimpFichier
-from .monWidgetSimpBase import MonWidgetSimpBase
+from UiQT5.desWidgetSimpFichier import Ui_WidgetSimpFichier
+from InterfaceGUI.QT5.monWidgetSimpBase import MonWidgetSimpBase
class MonWidgetSimpFichier(Ui_WidgetSimpFichier, MonWidgetSimpBase):
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetSimpSalome import Ui_WidgetSimpSalome
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieValeur
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetSimpSalome import Ui_WidgetSimpSalome
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieValeur
class MonWidgetSimpSalome(Ui_WidgetSimpSalome, Feuille):
#
# Modules Eficas
-# from PyQt4.QtGui import *
-# from PyQt4.QtCore import *
+
from Extensions.i18n import tr
from InterfaceGUI.QT5.feuille import Feuille
from InterfaceGUI.QT5.monWidgetSimpTuple import MonWidgetSimpTuple
-from desWidgetTuple2 import Ui_WidgetTuple2
-from desWidgetTuple3 import Ui_WidgetTuple3
-from desWidgetTuple4 import Ui_WidgetTuple4
-from desWidgetTuple5 import Ui_WidgetTuple5
-from desWidgetTuple6 import Ui_WidgetTuple6
-from desWidgetTuple7 import Ui_WidgetTuple7
-from desWidgetTuple8 import Ui_WidgetTuple8
-from desWidgetTuple9 import Ui_WidgetTuple9
-from desWidgetTuple10 import Ui_WidgetTuple10
+from UiQT5.desWidgetTuple2 import Ui_WidgetTuple2
+from UiQT5.desWidgetTuple3 import Ui_WidgetTuple3
+from UiQT5.desWidgetTuple4 import Ui_WidgetTuple4
+from UiQT5.desWidgetTuple5 import Ui_WidgetTuple5
+from UiQT5.desWidgetTuple6 import Ui_WidgetTuple6
+from UiQT5.desWidgetTuple7 import Ui_WidgetTuple7
+from UiQT5.desWidgetTuple8 import Ui_WidgetTuple8
+from UiQT5.desWidgetTuple9 import Ui_WidgetTuple9
+from UiQT5.desWidgetTuple10 import Ui_WidgetTuple10
class MonWidgetSimpTuple2(Ui_WidgetTuple2, MonWidgetSimpTuple):
# Modules Eficas
from Extensions.i18n import tr
-from desWidgetSimpTxt import Ui_WidgetSimpTxt
-from .monWidgetSimpBase import MonWidgetSimpBase
+from UiQT5.desWidgetSimpTxt import Ui_WidgetSimpTxt
+from InterfaceGUI.QT5.monWidgetSimpBase import MonWidgetSimpBase
class MonWidgetSimpTxt(Ui_WidgetSimpTxt, MonWidgetSimpBase):
from InterfaceGUI.QT5.feuille import Feuille
from InterfaceGUI.QT5.monWidgetPlusieursTuple import MonWidgetPlusieursTuple
-from desWidgetPlusieursTuple import Ui_WidgetPlusieursTuple
-from desWidgetTableau import Ui_WidgetTableau
+from UiQT5.desWidgetPlusieursTuple import Ui_WidgetPlusieursTuple
+from UiQT5.desWidgetTableau import Ui_WidgetTableau
maxLen = 3
# Modules Python
# Modules Eficas
-from PyQt4.QtGui import *
-from PyQt4.QtCore import *
+
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetUniqueSDCO import Ui_WidgetUniqueSDCO
-from .politiquesValidation import PolitiqueUnique
-from .qtSaisie import SaisieSDCO
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetUniqueSDCO import Ui_WidgetUniqueSDCO
+from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
+from InterfaceGUI.QT5.qtSaisie import SaisieSDCO
class MonWidgetUniqueSDCO(Ui_WidgetUniqueSDCO, Feuille, SaisieSDCO):
# Modules Eficas
from Extensions.i18n import tr
-from .feuille import Feuille
-from desWidgetVide import Ui_WidgetVide
+from InterfaceGUI.QT5.feuille import Feuille
+from UiQT5.desWidgetVide import Ui_WidgetVide
from InterfaceGUI.QT5.politiquesValidation import PolitiqueUnique
Class implementing the main user interface.
"""
- def __init__(
- self,
- code=None,
- salome=1,
- parent=None,
- multi=False,
- langue="en",
- ssIhm=False,
- labelCode=None,
- GUIPath="InterfaceGUI.QT5",
+ def __init__( self, code=None, salome=1, parent=None, multi=False, langue="en", ssIhm=False,
+ labelCode=None, GUIPath="InterfaceGUI.QT5",
):
"""
Constructor
pass
def traductionV11V12(self):
- from .gereTraduction import traduction
+ from InterfaceGUI.QT5.gereTraduction import traduction
traduction(self.maConfiguration.repIni, self.viewmanager, "V11V12")
def traductionV10V11(self):
- from .gereTraduction import traduction
+ from InterfaceGUI.QT5.gereTraduction import traduction
traduction(self.maConfiguration.repIni, self.viewmanager, "V10V11")
def traductionV9V10(self):
- from .gereTraduction import traduction
+ from InterfaceGUI.QT5.gereTraduction import traduction
traduction(self.maConfiguration.repIni, self.viewmanager, "V9V10")
def version(self):
- from .monVisu import DVisu
+ from InterfaceGUI.QT5.monVisu import DVisu
titre = tr("version ")
monVisuDialg = DVisu(parent=self, fl=0)
monOption.show()
def optionPdf(self):
- from monOptionsPdf import OptionPdf
+ from InterfaceGUI.QT5.monOptionsPdf import OptionPdf
monOption = OptionPdf(parent=self, modal=0, configuration=self.maConfiguration)
monOption.show()
return
if not hasattr(self, "readercata"):
return
- from monLayoutBouton import MonLayoutBouton
+ from InterfaceGUI.QT5.monLayoutBouton import MonLayoutBouton
if hasattr(self, "monLayoutBoutonRempli"):
return
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
# permet de lancer EFICAS en n affichant rien
-try:
- from builtins import object
-except:
- pass
+
class appliEficasSSIhm(object):
#
-try:
- from builtins import object
-except:
- pass
from PyQt5.QtWidgets import QAction, QMenu, QMessageBox
-try:
- from builtins import str
- from builtins import object
-except:
- pass
-
import os
from Extensions.i18n import tr
from PyQt5.QtWidgets import QFileDialog, QMessageBox