def __init__(self, language, callback, lang_option):
#temporarily switch to new language
self.old_language = lang.current_lang
self.switch_language(lang_option)
self.title = lang.pack['Switch_Lang']['Choose']['Switch_to'] + language + lang.pack['Switch_Lang']['Choose']['Question']
self.body_text = lang.pack['Switch_Lang']['Choose']['Are_You_Sure']
self.option1_text = lang.pack['Switch_Lang']['Choose']['Yes_option']
self.option2_text = lang.pack['Switch_Lang']['Choose']['No_option']
self.option1_function = self.yes
self.option2_function = self.no
self.callback = callback
self.language = language
self.lang_option = lang_option
self.pressed_yes = False
super(Switch_Language, self).__init__(self.title, self.body_text, self.option1_text, self.option2_text, self.option1_function, self.option2_function)
Clock.schedule_interval(self.Monitor_Screen, 0.2)
评论列表
文章目录