Пример #1
0
 def remove_item(self, item):
     if type(item) == GUIListDropdown and item.expanded:
         item.collapse()
     item.deselect()
     self.child.remove_child(item)
     GUISystem.update_all()
Пример #2
0
 def add_item(self, item, index=-1):
     item.list_container = self
     self.child.add_child(item, index)
     GUISystem.update_all()