24 """ A BoxManager manages a collection of widget
25 Each widget is associated to an item
26 A widget is displayed when the associated item is selected
27 To get the associated widget : item.box(self)
30 QWidgetStack.__init__(self,parent)
38 if not self.panels.has_key(item):
39 CONNECTOR.Connect(item,
"changed",self.
changePanel,(item,))
42 idd=self.addWidget(panel)
43 self.raiseWidget(self.
panels[item])
46 print "changePanel",item
47 if self.panels.has_key(item):
48 self.removeWidget(self.
panels[item])
51 idd=self.addWidget(panel)
52 self.raiseWidget(self.
panels[item])