1 # Copyright (C) 2006-2008 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.
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
25 def __init__(self,label=""):
29 def isExpandable(self):
32 def getChildren(self):
37 def getIconName(self):
40 def panel(self,parent):
41 """Retourne un widget pour browser/editer l'item"""
43 label=QLabel("Default Panel",qvbox)
44 label.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter )
48 """Retourne un widget pour browser/editer l'item"""
50 label=QLabel("Default Panel",qvbox)
51 label.setAlignment( Qt.AlignHCenter | Qt.AlignVCenter )
55 """Method called on selection"""
56 #print "Item selected"
57 def dblselected(self):
58 """Method called on double selection"""
59 #print "Item dblselected"
64 if items.has_key(obj.ptr()):
65 return items[obj.ptr()]
71 if __name__ == "__main__":
72 app = QApplication(sys.argv)
73 t=Item("label").panel(None)