]> SALOME platform Git repositories - tools/eficas.git/blob - InterfaceQT4/monInactifPanel.py
Salome HOME
CCAR: merge de la version 1.14 dans la branche principale
[tools/eficas.git] / InterfaceQT4 / monInactifPanel.py
1 # -*- coding: utf-8 -*-
2
3
4 from PyQt4.QtGui import *
5 from PyQt4.QtCore import *
6
7 from qtCommun import QTPanel
8 from desInactif import Ui_DInactif
9
10
11 SEPARATEUR = '-'*30
12
13       
14 class PanelInactif( QTPanel, Ui_DInactif,QDialog ):   
15     def __init__(self,node,parent ):
16         #print "PanelInactif"
17         QDialog.__init__(self,parent)
18         QTPanel.__init__(self,node,parent)
19         Ui_DInactif.__init__(self,parent)
20         if hasattr(parent,"leLayout"):
21            parent.leLayout.removeWidget(parent.leLayout.widgetActive)
22            parent.leLayout.widgetActive.close()
23            parent.leLayout.addWidget(self)
24            parent.leLayout.widgetActive=self
25         else:
26            parent.partieDroite=QWidget()
27            parent.leLayout=QGridLayout(parent.partieDroite)
28            parent.leLayout.addWidget(self)
29            parent.addWidget(parent.partieDroite)
30            parent.leLayout.widgetActive=self
31         self.setupUi(self)
32                 
33         self.connect(self.bSup,SIGNAL("clicked()"),self.BSupPressed)
34
35     def BSupPressed(self):
36        QTPanel.BSupPressed(self)
37