Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions
trait_de_coupe Namespace Reference

Functions

def main

Function Documentation

Definition at line 14 of file trait_de_coupe.py.

00014 
00015 def main():
00016     userUnit = getUnit()
00017     setUnit(1)
00018     x,y = getPosition()
00019     l,h = getSize()
00020     t1 = createLine(x, y-2, x, y-7)
00021     setLineWidth(0.1, t1)
00022     t2 = createLine(x+l, y-2, x+l, y-7)
00023     setLineWidth(0.1, t2)
00024     t3 = createLine(x, y+7+h, x, y+2+h)
00025     setLineWidth(0.1, t3)
00026     t4 = createLine(x+l, y+7+h, x+l, y+2+h)
00027     setLineWidth(0.1, t4)
00028     t5 = createLine(x-2, y, x-7, y)
00029     setLineWidth(0.1, t5)
00030     t6 = createLine(x-2, y+h, x-7, y+h)
00031     setLineWidth(0.1, t6)
00032     t7 = createLine(x+l+2, y+h, x+l+7, y+h)
00033     setLineWidth(0.1, t7)
00034     t7 = createLine(x+l+2, y, x+l+7, y)
00035     setLineWidth(0.1, t7)
00036     deselectAll()
00037     setUnit(userUnit)