main_window.py 文件源码

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

项目:Enibar 作者: ENIB 项目源码 文件源码
def export(self, notes):
        """ Generic export notes function """
        path, _ = QtWidgets.QFileDialog(self).getSaveFileName(
            self,
            "Exporter vers",
            "{}.csv".format(datetime.datetime.now().strftime("%Y-%m-%d")),
            "CSV Files (*.csv)"
        )

        if path:
            try:
                with open(path, "w") as save_file:
                    save_file.write(api.notes.export(notes))
            except PermissionError:
                gui.utils.error("Erreur", "Impossible d'écrire ici")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号