def UpdateData(self): eqpdata = AvailUsEquipment() self.ids.kindsel.values = UsableEquipmentKind() self.eqplst.data = [{ 'text': x[0], 'nazwa': x[1], 'ilosc': x[2] } for x in eqpdata] self.eqplst.refresh_from_data() self.chosenlst.refresh_from_data()
def UpdateSpinner2(self, chosen1): self.ids.kindsel.text = "Wybierz rodzaj" if chosen1 == "Sprzety zuzywalne": self.ids.kindsel.values = UsableEquipmentKind() eqpdata = AvailUsEquipment() self.eqplst.data = [{'text': x[0]} for x in eqpdata] self.eqplst.refresh_from_data() else: if chosen1 == "Sprzety niezuzywalne": self.ids.kindsel.values = UnUsableEquipmentKind() eqpdata = AvailUnUsEquipment() self.eqplst.data = [{'text': x[0]} for x in eqpdata] self.eqplst.refresh_from_data() else: self.ids.kindsel.values = ["Wybierz rodzaj"] self.UpdateData()
def __init__(self, **kwargs): super(UsKindList, self).__init__(**kwargs) kinddata = UsableEquipmentKind() self.data = [{'text': x} for x in kinddata]
def UpdateData(self, equip): self.kind = UsableEquipmentKind() self.eqpname = equip
def UpdateData(self): kinddata = UsableEquipmentKind() self.uskindlst.data = [{'text': x} for x in kinddata] self.uskindlst.refresh_from_data()
def UpdateData(self): self.kind = UsableEquipmentKind()