From: Pascale Noyret Date: Mon, 29 Nov 2010 10:46:03 +0000 (+0000) Subject: Bouton Tri alpha X-Git-Tag: V2_1_1_beta~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c0c5610fccef8d5fa4831cfcc3d3931b4572d225;p=modules%2Feficas.git Bouton Tri alpha --- diff --git a/InterfaceQT4/monUniqueIntoPanel.py b/InterfaceQT4/monUniqueIntoPanel.py index 017ae9fe..d89c4f31 100644 --- a/InterfaceQT4/monUniqueIntoPanel.py +++ b/InterfaceQT4/monUniqueIntoPanel.py @@ -55,6 +55,7 @@ class MonUniqueIntoPanel(DUnIn,QTPanel,SaisieValeur): """ def __init__(self,node, parent = None,name = None,fl = 0): #print "MonUniqueIntoPanel" + self.alpha=0 QTPanel.__init__(self,node,parent) DUnIn.__init__(self,parent,fl) SaisieValeur.RemplitPanel(self) @@ -64,6 +65,7 @@ class MonUniqueIntoPanel(DUnIn,QTPanel,SaisieValeur): def connecterSignaux(self) : self.connect(self.listBoxVal, SIGNAL("itemDoubleClicked(QListWidgetItem*)" ), self.ClicValeur ) self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed) + self.connect(self.BAlpha,SIGNAL("clicked()"),self.BAlphaPressed) def ClicValeur(self): SaisieValeur.ClicValeur(self) @@ -72,3 +74,12 @@ class MonUniqueIntoPanel(DUnIn,QTPanel,SaisieValeur): def BOkPressed(self): SaisieValeur.BOkPressed(self) + def BAlphaPressed(self): + if self.alpha==1 : + self.alpha=0 + self.BAlpha.setText(QApplication.translate("DPlusInto", "Tri Alpha",None,QApplication.UnicodeUTF8)) + else : + self.alpha=1 + self.BAlpha.setText(QApplication.translate("DPlusInto", "Tri Cata",None,QApplication.UnicodeUTF8)) + SaisieValeur.RemplitPanel(self,alpha=self.alpha) +