1 # Copyright (C) 2006-2016 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 from . import CONNECTOR
26 def __init__(self,label=""):
30 def isExpandable(self):
33 def getChildren(self):
38 def getIconName(self):
41 def panel(self,parent):
42 """Retourne un widget pour browser/editer l'item"""
44 label=QLabel("Default Panel",qvbox)
45 label.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter )
49 """Retourne un widget pour browser/editer l'item"""
51 label=QLabel("Default Panel",qvbox)
52 label.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter )
56 """Method called on selection"""
57 #print "Item selected"
58 def dblselected(self):
59 """Method called on double selection"""
60 #print "Item dblselected"
65 if obj.ptr() in items:
66 return items[obj.ptr()]
72 if __name__ == "__main__":
73 app = QApplication(sys.argv)
74 t=Item("label").panel(None)