r23980 by jghali - #16212: Fix docstrings for the scripter's pdfexport and print <ale>
scribus-commit
scribus-commit at lists.scribus.net
Fri Aug 14 03:17:02 UTC 2020
Author: jghali
Date: Fri Aug 14 03:17:02 2020
New Revision: 23980
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23980
Log:
#16212: Fix docstrings for the scripter's pdfexport and print <ale>
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.h
trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp
trunk/Scribus/scribus/plugins/scriptplugin/objprinter.h
trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.cpp
trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.h
trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.cpp
trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.h
Modified: trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.cpp Fri Aug 14 03:17:02 2020
@@ -1648,7 +1648,7 @@
}
static PyMethodDef PDFfile_methods[] = {
- {const_cast<char*>("save"), (PyCFunction)PDFfile_save, METH_NOARGS, const_cast<char*>("Save selected pages to pdf file")},
+ {const_cast<char*>("save"), (PyCFunction)PDFfile_save, METH_NOARGS, pdffile_save__doc__},
{nullptr, (PyCFunction)(nullptr), 0, nullptr} // sentinel
};
Modified: trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objpdffile.h Fri Aug 14 03:17:02 2020
@@ -28,4 +28,6 @@
pdf.file = 'mypdf.pdf' \n\
pdf.save()");
+PyDoc_STRVAR(pdffile_save__doc__, "save() -> void\n\nSave selected pages to pdf file.");
+
#endif /* OBJPDFFILE_H */
Modified: trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objprinter.cpp Fri Aug 14 03:17:02 2020
@@ -506,7 +506,7 @@
}
static PyMethodDef Printer_methods[] = {
- {const_cast<char*>("printNow"), (PyCFunction)Printer_print, METH_NOARGS, const_cast<char*>("Prints selected pages.")},
+ {const_cast<char*>("printNow"), (PyCFunction)Printer_print, METH_NOARGS, printer_printnow__doc__},
{nullptr, (PyCFunction)(nullptr), 0, nullptr} // sentinel
};
Modified: trunk/Scribus/scribus/plugins/scriptplugin/objprinter.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin/objprinter.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/objprinter.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/objprinter.h Fri Aug 14 03:17:02 2020
@@ -25,4 +25,6 @@
p = Printer()\n\
p.print()");
+PyDoc_STRVAR(printer_printnow__doc__, "printNow() -> boolean\n\nPrints selected pages.");
+
#endif /* OBJPRINTER_H */
Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.cpp Fri Aug 14 03:17:02 2020
@@ -1648,7 +1648,7 @@
}
static PyMethodDef PDFfile_methods[] = {
- {const_cast<char*>("save"), (PyCFunction)PDFfile_save, METH_NOARGS, const_cast<char*>("Save selected pages to pdf file")},
+ {const_cast<char*>("save"), (PyCFunction)PDFfile_save, METH_NOARGS, pdffile_save__doc__},
{nullptr, (PyCFunction)(nullptr), 0, nullptr} // sentinel
};
Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/objpdffile.h Fri Aug 14 03:17:02 2020
@@ -28,4 +28,6 @@
pdf.file = 'mypdf.pdf' \n\
pdf.save()");
+PyDoc_STRVAR(pdffile_save__doc__, "save() -> void\n\nSave selected pages to pdf file.");
+
#endif /* OBJPDFFILE_H */
Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.cpp Fri Aug 14 03:17:02 2020
@@ -506,7 +506,7 @@
}
static PyMethodDef Printer_methods[] = {
- {const_cast<char*>("printNow"), (PyCFunction)Printer_print, METH_NOARGS, const_cast<char*>("Prints selected pages.")},
+ {const_cast<char*>("printNow"), (PyCFunction)Printer_print, METH_NOARGS, printer_printnow__doc__},
{nullptr, (PyCFunction)(nullptr), 0, nullptr} // sentinel
};
Modified: trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23980&path=/trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin_py2x/objprinter.h Fri Aug 14 03:17:02 2020
@@ -25,4 +25,6 @@
p = Printer()\n\
p.print()");
+PyDoc_STRVAR(printer_printnow__doc__, "printNow() -> boolean\n\nPrints selected pages.");
+
#endif /* OBJPRINTER_H */
More information about the scribus-commit
mailing list