def setup2(self):
try:
CalApp.inp = [self.nameInp.text.strip(' \t\n\r'),
float(self.heightInp.text),
float(self.weightInp.text),int(self.yearsInp.text),
self.genderChoice]
CalApp.sm.current='Profile2'
except (TypeError,ValueError) as e:
invalid = Popup(title='Invalid entries',
content=Label(text='Check your data and try again.'),
size_hint=(None, None),size=('250dp','150dp'))
invalid.open()
评论列表
文章目录