remote-tree.py 文件源码

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

项目:RemoteTree 作者: deNULL 项目源码 文件源码
def anim_loading(self):
        if self.loading > 0:
            self.loading_anim = (self.loading_anim + 1) % 8
            char = '????????'[self.loading_anim]
            html = '''<body id="loader">
<style>
    .spinner {
        display: inline;
        color: var(--redish);
    }
</style>
Loading <span class="spinner">%s</span></body>''' % char
            self.loader = sublime.Phantom(sublime.Region(len(self.server['remote_path'])), html, sublime.LAYOUT_INLINE)
            self.phantom_set.update([self.loader, self.phantom] if self.phantom else [self.loader])
            sublime.set_timeout(self.anim_loading, 100)
        else:
            print('removing anim')
            self.phantom_set.update([self.phantom] if self.phantom else [])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号