示例#1
0
 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()
示例#2
0
    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()
示例#3
0
 def __init__(self, **kwargs):
     super(UsKindList, self).__init__(**kwargs)
     kinddata = UsableEquipmentKind()
     self.data = [{'text': x} for x in kinddata]
示例#4
0
 def UpdateData(self, equip):
     self.kind = UsableEquipmentKind()
     self.eqpname = equip
示例#5
0
 def UpdateData(self):
     kinddata = UsableEquipmentKind()
     self.uskindlst.data = [{'text': x} for x in kinddata]
     self.uskindlst.refresh_from_data()
示例#6
0
 def UpdateData(self):
     self.kind = UsableEquipmentKind()