r21699 by gpittman - enhanced the usage information of Caption.py
scribus-commit
scribus-commit at lists.scribus.net
Wed Jan 4 23:45:49 UTC 2017
Author: gpittman
Date: Wed Jan 4 23:45:49 2017
New Revision: 21699
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21699
Log:
enhanced the usage information of Caption.py
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/scripts/Caption.py
Modified: trunk/Scribus/scribus/plugins/scriptplugin/scripts/Caption.py
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21699&path=/trunk/Scribus/scribus/plugins/scriptplugin/scripts/Caption.py
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/scripts/Caption.py (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/scripts/Caption.py Wed Jan 4 23:45:49 2017
@@ -23,17 +23,23 @@
© 2017 Gregory Pittman
-Caption.py
+caption.py
Creates a text frame (caption) in selected location relative to
one or more selected frames.
USAGE
-Select one or more frames (can be any kind of frame), run script. Dialog appears
-for choosing placement of all caption frames B/T/R/L (Bottom/Top/Right/Left).
-Bottom and Top caption frames are sized to width of parent frame and height
+Select one or more object (can be any kind of frame, or even imported vector graphics),
+
+run script. Dialog appears for choosing placement of all caption frames
+
+B/T/R/L (Bottom/Top/Right/Left).
+
+Bottom and Top caption frames are sized to width of parent object and height
+
of 24 points. Right and Left caption frames sized to 150 points width and
+
40 points height.
"""
@@ -50,7 +56,7 @@
frames = []
if numselect == 0:
- scribus.messageBox('Selection Count', "You must have at least one image frame selected",
+ scribus.messageBox('Selection Count', "You must have at least one object selected",
scribus.ICON_WARNING, scribus.BUTTON_OK)
sys.exit(2)
More information about the scribus-commit
mailing list