Back to index

scribus-ng  1.3.4.dfsg+svn20071115
plus_10_pourcent_group.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 
00004 """ Make selected group larger by 10% """
00005 
00006 import sys
00007 
00008 try:
00009     from scribus import *
00010 except ImportError:
00011     print "This script only runs from within Scribus."
00012     sys.exit(1)
00013 
00014 if haveDoc() and selectionCount():
00015     scaleGroup(1.1)
00016 else:
00017     messageBox("plus_10_pourcent_group.py", "Please select an object to scale before running this script.", ICON_INFORMATION)