Exemplo n.º 1
0
Arquivo: list.py Projeto: saebyn/nwgui
    def remove(self, name):
        widget = self._find(name)

        VerticalContainer.remove(self, widget)

        self.items.remove((name, widget))

        if self.listItemViewedIndex >= len(self.items):
            self.listItemViewedIndex = len(self.items) - 1

        if self.listItemViewedIndex == -1:
            self.listItemViewedIndex = None