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.")
评论列表
文章目录