Author: jghali
Date: Sun May 13 12:54:40 2018
New Revision: 22540
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22540
Log:
#15306: Add python command setScaleFrameToImage
Modified:
trunk/Scribus/doc/de/scripterapi-manobj.html
trunk/Scribus/doc/en/scripterapi-manobj.html
trunk/Scribus/doc/fr/scripterapi-manobj.html
trunk/Scribus/doc/it/scripterapi-manobj.html
trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h
trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
Modified: trunk/Scribus/doc/de/scripterapi-manobj.html
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22540&path=/trunk/Scribus/doc/de/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/de/scripterapi-manobj.html (original)
+++ trunk/Scribus/doc/de/scripterapi-manobj.html Sun May 13 12:54:40 2018
@@ -54,6 +54,15 @@
<p>Scales the group the object "name" belongs to. Values greater than 1
enlarge the group, values smaller than 1 make the group smaller e.g a value of
0.5 scales the group to 50 % of its original size, a value of 1.5 scales the
group to 150 % of its original size. The value for "factor" must be greater
than 0. If "name" is not given the currently selected item is used.</p>
<p>May raise ValueError if an invalid scale factor is passed.</p></dd>
+<dt><a
name="-setCharacterStyle"><strong>setCharacterStyle</strong></a>(...)</dt>
+<dd><code>setCharacterStyle("style" [, "name"])</code>
+<p>Apply the named character "style" to the object named "name". If object
name is given, style is applied to the current text selection in object "name".
If no object name is given, style is applied on selected object.</p></dd>
+
+<dt><a
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
+<dd><code>setScaleFrameToImage([name])</code>
+<p>Set frame size on the selected or specified image frame to image size.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
<dt><a
name="-setScaleImageToFrame"><strong>setScaleImageToFrame</strong></a>(...)</dt>
<dd><code>setScaleImageToFrame(scaletoframe, proportional=None,
name=<selection>)</code>
<p>Sets the scale to frame on the selected or specified image frame to
`scaletoframe'. If `proportional' is specified, set fixed aspect ratio scaling
to `proportional'. Both `scaletoframe' and `proportional' are boolean.</p>
Modified: trunk/Scribus/doc/en/scripterapi-manobj.html
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22540&path=/trunk/Scribus/doc/en/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/en/scripterapi-manobj.html (original)
+++ trunk/Scribus/doc/en/scripterapi-manobj.html Sun May 13 12:54:40 2018
@@ -58,6 +58,11 @@
<dd><code>setCharacterStyle("style" [, "name"])</code>
<p>Apply the named character "style" to the object named "name". If object
name is given, style is applied to the current text selection in object "name".
If no object name is given, style is applied on selected object.</p></dd>
+<dt><a
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
+<dd><code>setScaleFrameToImage([name])</code>
+<p>Set frame size on the selected or specified image frame to image size.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
<dt><a
name="-setScaleImageToFrame"><strong>setScaleImageToFrame</strong></a>(...)</dt>
<dd><code>setScaleImageToFrame(scaletoframe, proportional=None,
name=<selection>)</code>
<p>Sets the scale to frame on the selected or specified image frame to
`scaletoframe'. If `proportional' is specified, set fixed aspect ratio scaling
to `proportional'. Both `scaletoframe' and `proportional' are boolean.</p>
Modified: trunk/Scribus/doc/fr/scripterapi-manobj.html
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22540&path=/trunk/Scribus/doc/fr/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/fr/scripterapi-manobj.html (original)
+++ trunk/Scribus/doc/fr/scripterapi-manobj.html Sun May 13 12:54:40 2018
@@ -54,8 +54,14 @@
<dd><code><a href="#-setCharacterStyle">setCharacterStyle</a>("style" [,
"nom"])</code>
<p>Applique le "style" de caractère désigné à
l'objet "nom". Si un nom d'objet est fourni, le style est appliqué
à la sélection de texte courante de l'objet donné. Si
aucun objet n'est fourni, le style est appliqué à l'objet
sélectionné.</p></dd>
+<dt><a
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
+<dd><code><a
href="#-setScaleFrameToImage">setScaleFrameToImage</a>([nom])</code>
+<p>Redimensionne l'objet "nom" aux dimensions de l'image. Si "nom" n'est pas
fourni, l'élément sélectionné est utilisé</p>
+<p>Peut générer WrongFrameTypeError.</p></dd>
+
<dt><a
name="-setScaleImageToFrame"><strong>setScaleImageToFrame</strong></a>(...)</dt>
-<dd><code><a
href="#-setScaleImageToFrame">setScaleImageToFrame</a>(redimAuCadre,
proportionnel=None, nom=<selection>)</code> <p>Établit le mode
de redimensionnement par rapport au cadre d'image sélectionné, ou
spécifié dans 'redimAuCadre'.
+<dd><code><a
href="#-setScaleImageToFrame">setScaleImageToFrame</a>(redimAuCadre,
proportionnel=None, nom=<selection>)</code>
+<p>Établit le mode de redimensionnement par rapport au cadre d'image
sélectionné, ou spécifié dans 'redimAuCadre'.
Si 'proportionnel' est spécifié, établit le
redimensionnement en maintenant des proportions fixes. 'redimAuCadre' et
'proportionnel' sont booléens.</p>
<p>Peut générer WrongFrameTypeError.</p></dd>
Modified: trunk/Scribus/doc/it/scripterapi-manobj.html
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22540&path=/trunk/Scribus/doc/it/scripterapi-manobj.html
==============================================================================
--- trunk/Scribus/doc/it/scripterapi-manobj.html (original)
+++ trunk/Scribus/doc/it/scripterapi-manobj.html Sun May 13 12:54:40 2018
@@ -1,80 +1,89 @@
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title>Manipulating Objects</title>
-</head>
-<body>
-<h2>Manipulating Objects</h2>
-
-<dl>
-
-<dt><a name="-copyObject"><strong>copyObject</strong>(...)</a></dt>
-<dd><code>copyObject(["name"]) -> string</code>
-<p>copies the selected Object to the clipboard.</p></dd>
-
-<dt><a name="-duplicateObject"><strong>duplicateObject</strong>(...)</a></dt>
-<dd><code>duplicateObject(["name"]) -> string</code>
-<p>creates a Duplicate of the selected Object (or Selection Group).</p></dd>
-
-<dt><a name="-groupObjects"><strong>groupObjects</strong></a>(...)</dt>
-<dd><code>groupObjects(list)</code>
-<p>Groups the objects named in "list" together. "list" must contain the names
of the objects to be grouped. If "list" is not given the currently selected
items are used.</p></dd>
-
-<dt><a name="-isLocked"><strong>isLocked</strong></a>(...)</dt>
-<dd><code>isLocked(["name"]) -> bool</code>
-<p>Returns true if is the object "name" locked. If "name" is not given the
currently selected item is used.</p></dd>
-
-<dt><a name="-lockObject"><strong>lockObject</strong></a>(...)</dt>
-<dd><code>lockObject(["name"]) -> bool</code>
-<p>Locks the object "name" if it's unlocked or unlock it if it's locked. If
"name" is not given the currently selected item is used. Returns true if
locked.</p></dd>
-
-<dt><a name="-moveObject"><strong>moveObject</strong></a>(...)</dt>
-<dd><code>moveObject(dx, dy [, "name"])</code>
-<p>Moves the object "name" by dx and dy relative to its current position. The
distances are expressed in the current measurement unit of the document (see
UNIT constants). If "name" is not given the currently selected item is used. If
the object "name" belongs to a group, the whole group is moved.</p>
-<p>If what you wish to do is to move an object to a different page or layer,
it may be more efficient to do the sequence <em>copyObject(...)</em>, followed
by <em>pasteObject(...)</em>, and then finally <em>deleteObject(...)</em> to
delete the original.</dd>
-
-<dt><a name="-moveObjectAbs"><strong>moveObjectAbs</strong></a>(...)</dt>
-<dd><code>moveObjectAbs(x, y [, "name"])</code>
-<p>Moves the object "name" to a new location. The coordinates are expressed in
the current measurement unit of the document (see UNIT constants). If "name"
is not given the currently selected item is used. If the object "name" belongs
to a group, the whole group is moved.</p></dd>
-
-<dt><a name="-pasteObject"><strong>pasteObject</strong>(...)</a></dt>
-<dd><code>pasteObject(["name"]) -> string</code>
-<p>pastes an Object from the clipboard. This will be used only or most
sensibly following <em>copyObject(...)</em>, since otherwise there will likely
be nothing in the clipboard to paste.</p></dd>
-
-<dt><a name="-rotateObject"><strong>rotateObject</strong></a>(...)</dt>
-<dd><code>rotateObject(rot [, "name"])</code>
-<p>Rotates the object "name" by "rot" degrees relatively. The object is
rotated by the vertex that is currently selected as the rotation point - by
default, the top left vertext at zero rotation. Positive values mean counter
clockwise rotation when the default rotation point is used. If "name" is not
given the currently selected item is used.</p></dd>
-
-<dt><a name="-rotateObjectAbs"><strong>rotateObjectAbs</strong></a>(...)</dt>
-<dd><code>rotateObjectAbs(rot [, "name"])</code>
-<p>Sets the rotation of the object "name" to "rot". Positive values mean
counter clockwise rotation. If "name" is not given the currently selected item
is used.</p></dd>
-
-<dt><a name="-scaleGroup"><strong>scaleGroup</strong></a>(...)</dt>
-<dd><code>scaleGroup(factor [,"name"])</code>
-<p>Scales the group the object "name" belongs to. Values greater than 1
enlarge the group, values smaller than 1 make the group smaller e.g a value of
0.5 scales the group to 50 % of its original size, a value of 1.5 scales the
group to 150 % of its original size. The value for "factor" must be greater
than 0. If "name" is not given the currently selected item is used.</p>
-<p>May raise ValueError if an invalid scale factor is passed.</p></dd>
-
-<dt><a
name="-setScaleImageToFrame"><strong>setScaleImageToFrame</strong></a>(...)</dt>
-<dd><code>setScaleImageToFrame(scaletoframe, proportional=None,
name=<selection>)</code>
-<p>Sets the scale to frame on the selected or specified image frame to
`scaletoframe'. If `proportional' is specified, set fixed aspect ratio scaling
to `proportional'. Both `scaletoframe' and `proportional' are boolean.</p>
-<p>May raise WrongFrameTypeError.</p></dd>
-
-<dt><a name="-setStyle"><strong>setStyle</strong></a>(...)</dt>
-<dd><code>setStyle("style" [, "name"])</code>
-<p>Apply the named "style" to the object named "name". If object name is
given, style is applied to the current text selection in object "name". If no
object name is given, style is applied on selected object.</p></dd>
-
-<dt><a name="-sizeObject"><strong>sizeObject</strong></a>(...)</dt>
-<dd><code>sizeObject(width, height [, "name"])</code>
-<p>Resizes the object "name" to the given width and height. If "name" is not
given the currently selected item is used.</p></dd>
-
-<dt><a name="-unGroupObject"><strong>unGroupObject</strong></a>(...)</dt>
-<dd><code>unGroupObjects("name")</code>
-<p>Destructs the group the object "name" belongs to.If "name" is not given the
currently selected item is used.</p></dd>
-
-<dt><a name="-textFlowMode"><strong>textFlowMode</strong>(...)</a></dt>
-<dd><code>textFlowMode("name" [, state])</code>
-<p>Enables/disables "Text Flows Around Frame" feature for object "name".
Called with parameters string name and optional int "state" (0 <= state
<= 3). Setting "state" to 0 will disable text flow. Setting "state" to 1
will make text flow around object frame. Setting "state" to 2 will make text
flow around bounding box. Setting "state" to 3 will make text flow around
contour line. If "state" is not passed, text flow is toggled.</p></dd>
-
-</dl>
-</body>
-</html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>Manipulating Objects</title>
+</head>
+<body>
+<h2>Manipulating Objects</h2>
+
+<dl>
+
+<dt><a name="-copyObject"><strong>copyObject</strong>(...)</a></dt>
+<dd><code>copyObject(["name"]) -> string</code>
+<p>copies the selected Object to the clipboard.</p></dd>
+
+<dt><a name="-duplicateObject"><strong>duplicateObject</strong>(...)</a></dt>
+<dd><code>duplicateObject(["name"]) -> string</code>
+<p>creates a Duplicate of the selected Object (or Selection Group).</p></dd>
+
+<dt><a name="-groupObjects"><strong>groupObjects</strong></a>(...)</dt>
+<dd><code>groupObjects(list)</code>
+<p>Groups the objects named in "list" together. "list" must contain the names
of the objects to be grouped. If "list" is not given the currently selected
items are used.</p></dd>
+
+<dt><a name="-isLocked"><strong>isLocked</strong></a>(...)</dt>
+<dd><code>isLocked(["name"]) -> bool</code>
+<p>Returns true if is the object "name" locked. If "name" is not given the
currently selected item is used.</p></dd>
+
+<dt><a name="-lockObject"><strong>lockObject</strong></a>(...)</dt>
+<dd><code>lockObject(["name"]) -> bool</code>
+<p>Locks the object "name" if it's unlocked or unlock it if it's locked. If
"name" is not given the currently selected item is used. Returns true if
locked.</p></dd>
+
+<dt><a name="-moveObject"><strong>moveObject</strong></a>(...)</dt>
+<dd><code>moveObject(dx, dy [, "name"])</code>
+<p>Moves the object "name" by dx and dy relative to its current position. The
distances are expressed in the current measurement unit of the document (see
UNIT constants). If "name" is not given the currently selected item is used. If
the object "name" belongs to a group, the whole group is moved.</p>
+<p>If what you wish to do is to move an object to a different page or layer,
it may be more efficient to do the sequence <em>copyObject(...)</em>, followed
by <em>pasteObject(...)</em>, and then finally <em>deleteObject(...)</em> to
delete the original.</dd>
+
+<dt><a name="-moveObjectAbs"><strong>moveObjectAbs</strong></a>(...)</dt>
+<dd><code>moveObjectAbs(x, y [, "name"])</code>
+<p>Moves the object "name" to a new location. The coordinates are expressed in
the current measurement unit of the document (see UNIT constants). If "name"
is not given the currently selected item is used. If the object "name" belongs
to a group, the whole group is moved.</p></dd>
+
+<dt><a name="-pasteObject"><strong>pasteObject</strong>(...)</a></dt>
+<dd><code>pasteObject(["name"]) -> string</code>
+<p>pastes an Object from the clipboard. This will be used only or most
sensibly following <em>copyObject(...)</em>, since otherwise there will likely
be nothing in the clipboard to paste.</p></dd>
+
+<dt><a name="-rotateObject"><strong>rotateObject</strong></a>(...)</dt>
+<dd><code>rotateObject(rot [, "name"])</code>
+<p>Rotates the object "name" by "rot" degrees relatively. The object is
rotated by the vertex that is currently selected as the rotation point - by
default, the top left vertext at zero rotation. Positive values mean counter
clockwise rotation when the default rotation point is used. If "name" is not
given the currently selected item is used.</p></dd>
+
+<dt><a name="-rotateObjectAbs"><strong>rotateObjectAbs</strong></a>(...)</dt>
+<dd><code>rotateObjectAbs(rot [, "name"])</code>
+<p>Sets the rotation of the object "name" to "rot". Positive values mean
counter clockwise rotation. If "name" is not given the currently selected item
is used.</p></dd>
+
+<dt><a name="-scaleGroup"><strong>scaleGroup</strong></a>(...)</dt>
+<dd><code>scaleGroup(factor [,"name"])</code>
+<p>Scales the group the object "name" belongs to. Values greater than 1
enlarge the group, values smaller than 1 make the group smaller e.g a value of
0.5 scales the group to 50 % of its original size, a value of 1.5 scales the
group to 150 % of its original size. The value for "factor" must be greater
than 0. If "name" is not given the currently selected item is used.</p>
+<p>May raise ValueError if an invalid scale factor is passed.</p></dd>
+
+<dt><a
name="-setCharacterStyle"><strong>setCharacterStyle</strong></a>(...)</dt>
+<dd><code>setCharacterStyle("style" [, "name"])</code>
+<p>Apply the named character "style" to the object named "name". If object
name is given, style is applied to the current text selection in object "name".
If no object name is given, style is applied on selected object.</p></dd>
+
+<dt><a
name="-setScaleFrameToImage"><strong>setScaleFrameToImage</strong></a>(...)</dt>
+<dd><code>setScaleFrameToImage([name])</code>
+<p>Set frame size on the selected or specified image frame to image size.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
+<dt><a
name="-setScaleImageToFrame"><strong>setScaleImageToFrame</strong></a>(...)</dt>
+<dd><code>setScaleImageToFrame(scaletoframe, proportional=None,
name=<selection>)</code>
+<p>Sets the scale to frame on the selected or specified image frame to
`scaletoframe'. If `proportional' is specified, set fixed aspect ratio scaling
to `proportional'. Both `scaletoframe' and `proportional' are boolean.</p>
+<p>May raise WrongFrameTypeError.</p></dd>
+
+<dt><a name="-setStyle"><strong>setStyle</strong></a>(...)</dt>
+<dd><code>setStyle("style" [, "name"])</code>
+<p>Apply the named "style" to the object named "name". If object name is
given, style is applied to the current text selection in object "name". If no
object name is given, style is applied on selected object.</p></dd>
+
+<dt><a name="-sizeObject"><strong>sizeObject</strong></a>(...)</dt>
+<dd><code>sizeObject(width, height [, "name"])</code>
+<p>Resizes the object "name" to the given width and height. If "name" is not
given the currently selected item is used.</p></dd>
+
+<dt><a name="-unGroupObject"><strong>unGroupObject</strong></a>(...)</dt>
+<dd><code>unGroupObjects("name")</code>
+<p>Destructs the group the object "name" belongs to.If "name" is not given the
currently selected item is used.</p></dd>
+
+<dt><a name="-textFlowMode"><strong>textFlowMode</strong>(...)</a></dt>
+<dd><code>textFlowMode("name" [, state])</code>
+<p>Enables/disables "Text Flows Around Frame" feature for object "name".
Called with parameters string name and optional int "state" (0 <= state
<= 3). Setting "state" to 0 will disable text flow. Setting "state" to 1
will make text flow around object frame. Setting "state" to 2 will make text
flow around bounding box. Setting "state" to 3 will make text flow around
contour line. If "state" is not passed, text flow is toggled.</p></dd>
+
+</dl>
+</body>
+</html>
Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22540&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp Sun May 13
12:54:40 2018
@@ -536,6 +536,29 @@
return PyBool_FromLong(0);
}
+PyObject *scribus_setscaleframetoimage(PyObject* /* self */, PyObject* args)
+{
+ if(!checkHaveDocument())
+ return nullptr;
+ char *Name = const_cast<char*>("");
+ if (!PyArg_ParseTuple(args, "|es", "utf-8", &Name))
+ return nullptr;
+ PageItem *item = GetUniqueItem(QString::fromUtf8(Name));
+ if (item == nullptr)
+ return nullptr;
+ if (!item->asImageFrame())
+ {
+ PyErr_SetString(WrongFrameTypeError, QObject::tr("Specified
item not an image frame.","python error").toLocal8Bit().constData());
+ return nullptr;
+ }
+ Selection *sel = new Selection(ScCore->primaryMainWindow());
+ sel->addItem(item);
+
ScCore->primaryMainWindow()->doc->itemSelection_AdjustFrametoImageSize(sel);
+ delete sel;
+
+ Py_RETURN_NONE;
+}
+
PyObject *scribus_setscaleimagetoframe(PyObject* /* self */, PyObject* args,
PyObject* kw)
{
char *name = const_cast<char*>("");
@@ -629,5 +652,6 @@
<< scribus_loadimage__doc__ << scribus_scaleimage__doc__
<< scribus_setimagescale__doc__ << scribus_lockobject__doc__
<< scribus_islocked__doc__ << scribus_setscaleimagetoframe__doc__ <<
scribus_setimagebrightness__doc__ << scribus_setimagegrayscale__doc__ <<
scribus_setimageoffset__doc__
+ << scribus_setscaleframetoimage__doc__
<< scribus_flipobject__doc__;
}
Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22540&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.h Sun May 13
12:54:40 2018
@@ -241,6 +241,15 @@
/*! Status of locking 2004/7/10 pv.*/
PyObject *scribus_islocked(PyObject * /*self*/, PyObject* args);
+PyDoc_STRVAR(scribus_setscaleframetoimage__doc__,
+QT_TR_NOOP("setScaleFrameToImage([name])\n\
+\n\
+Set frame size on the selected or specified image frame to image size.\n\
+\n\
+May raise WrongFrameTypeError.\n\
+"));
+PyObject *scribus_setscaleframetoimage(PyObject * /*self*/, PyObject* args);
+
PyDoc_STRVAR(scribus_setscaleimagetoframe__doc__,
QT_TR_NOOP("setScaleImageToFrame(scaletoframe, proportional=None,
name=<selection>)\n\
\n\
Modified: trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
URL:
http://scribus.net/websvn/diff.php?repname=Scribus&rev=22540&path=/trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scriptplugin.cpp Sun May 13
12:54:40 2018
@@ -540,6 +540,7 @@
// missing? {"setSelectedObject", scribus_setselobjnam, METH_VARARGS,
"Returns the Name of the selecteted Object. \"nr\" if given indicates the
Number of the selected Object, e.g. 0 means the first selected Object, 1 means
the second selected Object and so on."},
{const_cast<char*>("hyphenateText"), scribus_hyphenatetext,
METH_VARARGS, tr(scribus_hyphenatetext__doc__)},
{const_cast<char*>("dehyphenateText"), scribus_dehyphenatetext,
METH_VARARGS, tr(scribus_dehyphenatetext__doc__)},
+ {const_cast<char*>("setScaleFrameToImage"),
(PyCFunction)scribus_setscaleframetoimage, METH_VARARGS,
tr(scribus_setscaleframetoimage__doc__)},
{const_cast<char*>("setScaleImageToFrame"),
(PyCFunction)scribus_setscaleimagetoframe, METH_KEYWORDS,
tr(scribus_setscaleimagetoframe__doc__)},
{const_cast<char*>("setStyle"), scribus_setstyle, METH_VARARGS,
tr(scribus_setstyle__doc__)},
{const_cast<char*>("setCharacterStyle"), scribus_setcharstyle,
METH_VARARGS, tr(scribus_setcharstyle__doc__) },
_______________________________________________
scribus-commit mailing list
[email protected]
http://lists.scribus.net/mailman/listinfo/scribus-commit