예제 #1
0
파일: onerepmax.py 프로젝트: bashu/bbcalc
 def set_unit_combobox(self, value):
     self.weight_spinbutton = convert_mass(self.weight_spinbutton, value)
     self.unit_combobox = value
예제 #2
0
파일: weightunits.py 프로젝트: bashu/bbcalc
 def get_result_entry(self):
     if self.unit1_combobox != self.unit2_combobox:
         return convert_mass(self.weight_spinbutton, self.unit2_combobox)
     else:
         return self.weight_spinbutton