Salome HOME
projects
/
tools
/
eficas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pour V1 Carmel
[tools/eficas.git]
/
InterfaceQT4
/
monWidgetOptionnel.py
diff --git
a/InterfaceQT4/monWidgetOptionnel.py
b/InterfaceQT4/monWidgetOptionnel.py
index 5ca0b75e4f6af0d341529eb6f0260be6c16a95de..eb797065c4e9053f02c576231477ae5f65e5ee24 100644
(file)
--- a/
InterfaceQT4/monWidgetOptionnel.py
+++ b/
InterfaceQT4/monWidgetOptionnel.py
@@
-34,27
+34,31
@@
class monButtonCustom(QCheckBox):
self.monOptionnel=monOptionnel
def mouseDoubleClickEvent(self, event):
self.monOptionnel=monOptionnel
def mouseDoubleClickEvent(self, event):
- print "dans mouseDoubleClickEvent"
- if self not in self.monOptionnel.dicoCb.keys() : return
+ #print "dans mouseDoubleClickEvent"
+ if self not in self.monOptionnel.dicoCb.keys() :
+ event.accept()
+ return
listeCheckedMC="+"+self.monOptionnel.dicoCb[self]
self.monOptionnel.parentMC.ajoutMC(listeCheckedMC)
self.setChecked(False)
listeCheckedMC="+"+self.monOptionnel.dicoCb[self]
self.monOptionnel.parentMC.ajoutMC(listeCheckedMC)
self.setChecked(False)
+ event.accept()
+
def mousePressEvent(self, event):
def mousePressEvent(self, event):
- print "dans mousePressEvent"
+
#
print "dans mousePressEvent"
self.mousePressed=True
self.mousePressed=True
- if not( event.button() != Qt.RightButton) : return
+ if not( event.button() != Qt.RightButton) :
+ event.accept()
+ return
QCheckBox.mousePressEvent(self, event)
QCheckBox.mousePressEvent(self, event)
+ event.accept()
class MonWidgetOptionnel (QWidget,Ui_WidgetOptionnel):
"""
"""
def __init__(self,parentQt):
class MonWidgetOptionnel (QWidget,Ui_WidgetOptionnel):
"""
"""
def __init__(self,parentQt):
- print "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
- print "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
- print "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
- print "dans init de monWidgetOptionnel ", parentQt, parentQt.node.item.nom
+ #print "dans init de monWidgetOptionnel ", parentQt, parentQt.node.item.nom
QWidget.__init__(self,None)
self.setupUi(self)
self.dicoCb={}
QWidget.__init__(self,None)
self.setupUi(self)
self.dicoCb={}
@@
-65,11
+69,13
@@
class MonWidgetOptionnel (QWidget,Ui_WidgetOptionnel):
self.cb=None
self.parentQt=parentQt
self.connect(self.bAjoutMC,SIGNAL("clicked()"), self.ajoutMC)
self.cb=None
self.parentQt=parentQt
self.connect(self.bAjoutMC,SIGNAL("clicked()"), self.ajoutMC)
+ #print "fin init de monWidgetOptionnel ", parentQt, parentQt.node.item.nom
+
def affiche(self,liste):
def affiche(self,liste):
- print "dans Optionnel ____ affiche", liste
+
#
print "dans Optionnel ____ affiche", liste
self.show()
labeltext,fonte,couleur = self.parentMC.node.item.GetLabelText()
l=labeltext
self.show()
labeltext,fonte,couleur = self.parentMC.node.item.GetLabelText()
l=labeltext
@@
-85,8
+91,8
@@
class MonWidgetOptionnel (QWidget,Ui_WidgetOptionnel):
for cb in self.dicoCb.keys():
#print 'je detruit', self.dicoCb[cb], cb
for cb in self.dicoCb.keys():
#print 'je detruit', self.dicoCb[cb], cb
+ #print cb.close()
cb.close()
cb.close()
- #print self.commandesOptionnellesLayout.children()
self.dicoCb={}
liste.reverse()
for mot in liste :
self.dicoCb={}
liste.reverse()
for mot in liste :
@@
-94,6
+100,7
@@
class MonWidgetOptionnel (QWidget,Ui_WidgetOptionnel):
#print "j ajoute ", mot, cb
self.dicoCb[cb]=mot
self.commandesOptionnellesLayout.insertWidget(0,cb)
#print "j ajoute ", mot, cb
self.dicoCb[cb]=mot
self.commandesOptionnellesLayout.insertWidget(0,cb)
+ #print "Fin Optionnel ____ affiche", liste
def CBChecked(self):
# ordre ?
def CBChecked(self):
# ordre ?
@@
-110,6
+117,6
@@
class MonWidgetOptionnel (QWidget,Ui_WidgetOptionnel):
for cb in self.dicoCb.keys():
if cb.isChecked() : maListe+="+"+str(cb.text())
if maListe=="":return
for cb in self.dicoCb.keys():
if cb.isChecked() : maListe+="+"+str(cb.text())
if maListe=="":return
- print "dans Optionnel __ ajout de ", maListe
+
#
print "dans Optionnel __ ajout de ", maListe
self.parentMC.ajoutMC(maListe)
self.parentMC.ajoutMC(maListe)