1 # -*- coding: utf-8 -*-
4 from PyQt4.QtGui import *
5 from PyQt4.QtCore import *
7 from qtCommun import QTPanel
8 from desInactif import Ui_DInactif
14 class PanelInactif( QTPanel, Ui_DInactif,QDialog ):
15 def __init__(self,node,parent ):
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
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
33 self.connect(self.bSup,SIGNAL("clicked()"),self.BSupPressed)
35 def BSupPressed(self):
36 QTPanel.BSupPressed(self)