code_edit_dialog.py 文件源码

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

项目:uPyLoader 作者: BetaRavener 项目源码 文件源码
def _save_local(self):
        path = self.localPathEdit.text()
        if not path:
            QMessageBox.warning(self, "Invalid path", "Enter correct path for local file.")
            return

        try:
            with open(path, "w") as file:
                file.write(self.codeEdit.toPlainText())
        except IOError:
            QMessageBox.critical(self, "Save operation failed", "Couldn't save the file. Check path and permissions.")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号