summaryrefslogtreecommitdiffstats
path: root/scribus/plugins/scriptplugin/samples/plus_10_pourcent_group.py
blob: 36d174e5c75004db0a6c41e02852ea7a5d48bf5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
# -*- coding: utf-8 -*-

""" Make selected group larger by 10% """

import sys

try:
    from scribus import *
except ImportError:
    print "This script only runs from within Scribus."
    sys.exit(1)

if haveDoc() and selectionCount():
    scaleGroup(1.1)
else:
    messageBox("plus_10_pourcent_group.py", "Please select an object to scale before running this script.", ICON_INFORMATION)