// savedocument(filename) void pythonSaveDocument(char *str) { logMessage("pythonSaveDocument()"); ErrorResult result = Util::scene()->writeToFile(QString(str)); if (result.isError()) throw invalid_argument(result.message().toStdString()); }
void pyOpenDocument(char *str) { ErrorResult result = Util::scene()->readFromFile(QString(str)); if (result.isError()) throw invalid_argument(result.message().toStdString()); }