# Autres ...
#
#---------------------------------------------------
- # SetText a priori inutilisee --> commentee
# GetIconName
# GetText
- # getval a priori inutilisee --> commentee
# set_valeur_co
# get_sd_avant_du_bon_type
- # verif a priori inutilisee --> commentee
# delete_valeur_co
- #def SetText(self, text):
- # try:
- # value = eval(text)
- # self.object.setval(value)
- # except:
- # pass
def GetIconName(self):
if self.isvalid():
if text == None : text=""
return text
- #def getval(self):
- # return self.object.getval()
def set_valeur_co(self,nom_co):
"""
- #def verif(self):
- # pass
def delete_valeur_co(self,valeur=None):
"""
type = mc.type[0]
if not('grma' in repr(type)) or not(self.editor.salome) :
self.BSalome.close()
+ self.BView2D.close
def ViewDoc(self):
QTPanel.ViewDoc(self)
if "GROUP_NO" in e: kwType = "GROUP_NO"
if "GROUP_MA" in e: kwType = "GROUP_MA"
- print "BkwType",kwType
- print "editor", self.editor
+ #print "BkwType",kwType
+ #print "editor", self.editor
selection, commentaire = self.editor.parent.appliEficas.selectGroupFromSalome(kwType,editor=self.editor)
if commentaire !="" :
self.Commentaire.setText(QString(commentaire))
monTexte= monTexte[0:-1]
self.LEValeur.setText(QString(monTexte))
+ def BView2DPressed(self):
+ valeur=self.LEValeur.text()
+ if valeur == QString("") :
+ valeur=self.LBValeurs.currentText()
+ if valeur == QString("") : return
+ valeur = str(valeur)
+ if valeur :
+ ok, msgError = self.editor.parent.appliEficas.displayShape(valeur)
+ if not ok:
+ self.editor.parent.appli.affiche_infos(msgError)
+
discrètes
"""
def __init__(self,node, parent = None,name = None,fl = 0):
+ self.editor=parent
QTPanel.__init__(self,node,parent)
DUnASSD.__init__(self,parent,name,fl)
self.politique=PolitiqueUnique(node,parent)
#if not('grma' in repr(type)):
if not('grma' in repr(type)) or not(self.editor.salome) :
self.BSalome.close()
+ self.BView2D.close()
def InitLineEditVal(self):
valeur=self.node.item.get_valeur()
monTexte= monTexte[0:-1]
self.LEValeur.setText(QString(monTexte))
+ def BView2DPressed(self):
+ valeur=self.LEValeur.text()
+ if valeur == QString("") : return
+ valeur = str(valeur)
+ if valeur :
+ ok, msgError = self.editor.parent.appliEficas.displayShape(valeur)
+ if not ok:
+ self.editor.parent.appli.affiche_infos(msgError)
+