]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
fiche 14622
authorPascale Noyret <pascale.noyret@edf.fr>
Fri, 7 May 2010 13:19:48 +0000 (13:19 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Fri, 7 May 2010 13:19:48 +0000 (13:19 +0000)
InterfaceQT4/browser.py

index 3c81d37039b9f860649292c46396f9fc2e03de35..1252b4a1af14e6f46c6125e92db2a85fda89ffb6 100644 (file)
@@ -42,7 +42,11 @@ class JDCTree( QTreeWidget ):
         self.setHeaderLabels(mesLabels)
                 
         #self.setMinimumSize(QSize(600,505))
-        self.setColumnWidth(0,300)
+        try :
+           self.setColumnWidth(0,300)
+        except :
+            QMessageBox.critical(self.editor, "L environnement doit etre en QT4")
+            exit
         self.itemCourrant=None
 
         self.connect(self, SIGNAL("itemClicked ( QTreeWidgetItem * ,int) "), self.handleOnItem)