program.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:KivyCleanMasterDemo 作者: HeaTTheatR 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号