def pass_Net_Adap(self):
     self.f = name.index(self.produkt.currentText())
     self.b = int(bel[self.f])
     self.z = int(zir[self.f])
     self.k = int(kal[self.f])
     self.u = int(ugl[self.f])
     self.belki.display(self.b)
     self.kalorii.display(self.k)
     self.uglevodi.display(self.u)
     self.zhiri.display(self.z)
Beispiel #2
0
 def swbros(self):
     self.mnoz = 0
     self.b = 0
     self.z = 0
     self.k = 0
     self.u = 0
     self.f = name.index(self.produkt.currentText())
     self.belki.display(self.b)
     self.kalorii.display(self.k)
     self.uglevodi.display(self.u)
     self.zhiri.display(self.z)
     self.grammovka.setText('0')
Beispiel #3
0
 def vich(self):
     self.f = name.index(self.produkt.currentText())
     self.b = int(bel[self.f])
     self.z = int(zir[self.f])
     self.k = int(kal[self.f])
     self.u = int(ugl[self.f])
     self.bw = (self.b / 100) * self.mnoz
     self.zw = (self.z / 100) * self.mnoz
     self.kw = (self.k / 100) * self.mnoz
     self.uw = (self.u / 100) * self.mnoz
     self.belki.display(self.bw)
     self.kalorii.display(self.kw)
     self.uglevodi.display(self.uw)
     self.zhiri.display(self.zw)