def _free_slot(self, pos, force_layout=True): "Replaces the element at pos with an empty slot" if self.widget and self.children[pos] and self.children[pos].widget: self.widget.Unsplit(self.children[pos].widget) old_child = self.children[pos] slot = Slot(self, pos) self.split() return slot
def _free_slot(self, index, force_layout=True): "Replaces the element at pos with an empty slot" slot = Slot(self, index) if self.widget: slot.create() return slot