pgs_ide.py 文件源码

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

项目:PigeonScript 作者: SilversApprentice 项目源码 文件源码
def save_file(self, data, overwrite=False):

        if overwrite and self.controller.has_saved:
            f = open(self.controller.saved_path, 'w')        
        else:
            f = tkfd.asksaveasfile(mode="w")
        if f is None:
            # If dialogue was closed by the 'cancel'
            return
        f.write(data)
        self.controller.has_saved = True
        self.controller.saved_path = f.name
        f.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号