- if self.editor.code in ['MAP','Adao','CARMELCND'] : self.bCatalogue.close()
- else : self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
- self.connect(self.LENom,SIGNAL("returnPressed()"),self.nomChange)
+
+
+ if self.editor.closeFrameRechercheCommande==True : self.closeAutreCommande()
+ else :
+ if monEnvQT5 :
+ try :
+ self.bCatalogue.clicked.connect(self.afficheCatalogue)
+ self.bAvant.clicked.connect(self.afficheAvant)
+ self.bApres.clicked.connect(self.afficheApres)
+ except :
+ pass
+ self.LENom.returnPressed.connect(self.nomChange)
+ else :
+ try :
+ self.connect(self.bCatalogue,SIGNAL("clicked()"), self.afficheCatalogue)
+ self.connect(self.bAvant,SIGNAL("clicked()"), self.afficheAvant)
+ self.connect(self.bApres,SIGNAL("clicked()"), self.afficheApres)
+ except :
+ pass
+ self.connect(self.LENom,SIGNAL("returnPressed()"),self.nomChange)
+
+ if self.editor.code in ['CARMELCND',] : self.closeAutreCommande()