def on_events(self, *args):
"""?????????? ??????? ??????????."""
try:
# ??????? ?????????? - ??? ???? ????????????? ?????????.
_args = args[0]
event = _args if isinstance(_args, str) else _args.id
except AttributeError:
# ??????? ??????????, ?????? ??????? - ??? ??????? ???????.
event = args[1]
if event == "About": # ??????? Activity About
self.show_about()
elif event == "on_previous" or event in (1000, 27): # ?????????? Activity
self.back_screen()
elif event == "JUNK FILES": # ??????? Activity JUNK FILES
self.show_junk_files()
# ????????? ???????? ???????? STORAGE/RAM.
self.Clock.unschedule(self.calc_elliptical_length)
# ?????? ???????? ????????? ???????.
self.Clock.schedule_interval(self.animation_clean, 0.2)
elif event == "STOP": # ????????? ???????? JUNK FILES
Clock.unschedule(self.animation_clean)
self.back_screen()
return True
评论列表
文章目录