/usr/share/pyshared/InterfaceQT4/monInactifPanel.py is in eficas 6.4.0-1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # -*- coding: utf-8 -*-
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from qtCommun import QTPanel
from desInactif import Ui_DInactif
SEPARATEUR = '-'*30
class PanelInactif( QTPanel, Ui_DInactif,QDialog ):
def __init__(self,node,parent ):
#print "PanelInactif"
QDialog.__init__(self,parent)
QTPanel.__init__(self,node,parent)
Ui_DInactif.__init__(self)
if hasattr(parent,"leLayout"):
parent.leLayout.removeWidget(parent.leLayout.widgetActive)
parent.leLayout.widgetActive.close()
parent.leLayout.addWidget(self)
parent.leLayout.widgetActive=self
else:
parent.partieDroite=QWidget()
parent.leLayout=QGridLayout(parent.partieDroite)
parent.leLayout.addWidget(self)
parent.addWidget(parent.partieDroite)
parent.leLayout.widgetActive=self
self.setupUi(self)
self.connect(self.bSup,SIGNAL("clicked()"),self.BSupPressed)
def BSupPressed(self):
self.editor.init_modif()
self.node.delete()
|