spe2fitsGUI.py 文件源码

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

项目:spe2fits 作者: jerryjiahaha 项目源码 文件源码
def checkListenTask(self):
        self.listener.unschedule_all()
        if self.listenDirEnableFlag.get():
            print("enable")
            listen_dir = os.path.abspath(self.listenDirPath.get())
            try:
                self.listener.schedule(self._listen_handler,
                        listen_dir, recursive = True)
            except Exception as e:
                messagebox.showinfo("listen dir {dirname} failed"
                        .format(dirname = listen_dir),
                        "{reason}".format(
                            reason = traceback.format_exception(*sys.exc_info())
                            )
                        )
        else:
            print("disable")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号