from determine import monEnvQT5
if monEnvQT5:
from PyQt5.QtWidgets import QWidget
+ from PyQt5.QtCore import Qt
else :
from PyQt4.QtGui import *
from PyQt4.QtCore import *
nouveau=widget.node.append_child(nom)
if firstNode==None : firstNode=nouveau
if nouveau == None or nouveau == 0 :
- self.editor.affiche_infos(str('insertion impossible a cet endroit pour '+nom),Qt.red)
+ self.editor.affiche_infos(tr('insertion impossible a cet endroit pour '+nom),Qt.red)
self.reaffiche(firstNode)
if firstNode!=None and firstNode.item!=None :
firstNode.select()
from determine import monEnvQT5
if monEnvQT5:
- from PyQt5.QtGui import Qicon
+ from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QApplication
from PyQt5.QtCore import QTimer, QSize, Qt
else :
from generator_python import PythonGenerator
extensions=('.comm',)
-from aideAuxConvertisseurs import listeSupprime, DicoAglomere, DicoEficasToCas
-from enumDicoTelemac import DicoEnumCasEnInverse
+try :
+ from aideAuxConvertisseurs import listeSupprime, DicoAglomere, DicoEficasToCas
+ from enumDicoTelemac import DicoEnumCasEnInverse
+except :
+ pass
def entryPoint():