Exemplo n.º 1
0
 def add_item(self, child, index=None):
     if index is not None and self.widget and self.widget.IsSplit():
         self.widget.Unsplit(self.children[index].widget)
     ManagedBase.add_item(self, child, index)
Exemplo n.º 2
0
 def add_item(self, child, pos=None):
     if pos is not None and self.widget:
         self._window_old = self.children[pos]
     ManagedBase.add_item(self, child, pos)
     self._add_slots(pos_max=pos)
Exemplo n.º 3
0
 def add_item(self, child, pos=None):
     ManagedBase.add_item(self, child, pos)
     # avoid widgets being destroyed; this is done by DeletePage/InsertPage
     child._dont_destroy = True