Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions | Variables
pochette_cd Namespace Reference

Functions

def main

Variables

tuple margins = (0, 0, 0, 0)
tuple paper = (210, 297)

Function Documentation

Definition at line 17 of file pochette_cd.py.

00017 
00018 def main():
00019     if newDocument(paper, margins, 1, 1, 1, NOFACINGPAGES, FIRSTPAGELEFT,1):
00020         setUnit(1)
00021         newPage(-1)
00022         gotoPage(1)
00023         createLayer("normal")
00024         setActiveLayer("normal")
00025         a = createText(98.5, 20, 100, 10)
00026         setText("CD pochette - front page", a)
00027         setFontSize(11, a)
00028         setTextAlignment(1, a)
00029         b = createText(28.5, 45, 120, 120)
00030         setFillColor("None", b)
00031         c = createText(148.5, 45, 120, 120)
00032         setFillColor("None", c)
00033         createLayer("bords_perdus")
00034         setActiveLayer("bords_perdus")
00035         img1 = createImage(24.35, 41.25 , 124.20, 127.95,)
00036         img2 = createImage(148.55, 41.25 , 124.20, 127.95,)
00037         createLayer("coupe")
00038         setActiveLayer("coupe")
00039         t1 = createLine(28.5, 38, 28.5, 43)
00040         setLineWidth(0.1, t1)
00041         t2 = createLine(148.5, 38, 148.5, 43)
00042         setLineWidth(0.1, t2)
00043         t3 = createLine(268.5, 38, 268.5, 43)
00044         setLineWidth(0.1, t3)
00045         t4 = createLine(28.5, 172, 28.5, 167)
00046         setLineWidth(0.1, t4)
00047         t5 = createLine(148.5, 172, 148.5, 167)
00048         setLineWidth(0.1, t5)
00049         t6 = createLine(268.5, 172, 268.5, 167)
00050         setLineWidth(0.1, t6)
00051         t7 = createLine(21.5, 45, 26.5, 45)
00052         setLineWidth(0.1, t7)
00053         t8 = createLine(21.5, 165, 26.5, 165)
00054         setLineWidth(0.1, t8)
00055         t9 = createLine(270.5, 45, 275.5, 45)
00056         setLineWidth(0.1, t9)
00057         t10 = createLine(270.5, 165, 275.5, 165)
00058         setLineWidth(0.1, t10)
00059         gotoPage(2)
00060         setActiveLayer("normal")
00061         a2 = createText(98.5, 20, 100, 10)
00062         setText("CD pochette - back page", a2)
00063         setFontSize(11, a2)
00064         setTextAlignment(1, a2)
00065         a2t = createText(204, 44, 78, 9)
00066         setText("Mode d'emploi :", a2t)
00067         setFontSize(13, a2t)
00068         setTextAlignment(1, a2t)
00069         a21 = createText(204, 54, 78, 87)
00070         setText("Usage. TODO: tranlslate it from french", a21)
00071         setFontSize(11, a21)
00072         setTextAlignment(0, a21)
00073         b2 = createText(28.5, 162.10, 117, 6)
00074         setText("Texte sur la tranche", b2)
00075         setFontSize(9, b2)
00076         setTextAlignment(1, b2)
00077         rotateObjectAbs(90, b2)
00078         setFillColor("None", b2)
00079         c2 = createText(34.5, 45, 137.5, 117)
00080         setFillColor("None", c2)
00081         d2 = createText(28.5, 162.10, 117, 6)
00082         setText("Texte sur la tranche", d2)
00083         setFontSize(9, d2)
00084         setTextAlignment(1, d2)
00085         rotateObjectAbs(90, d2)
00086         setFillColor("None", d2)
00087         moveObject(143.5, 0, d2)
00088         setActiveLayer("bords_perdus")
00089         img3 = createImage(24.35, 41.25 , 157.50, 126.50,)
00090         setActiveLayer("coupe")
00091         t21 = createLine(28.5, 38, 28.5, 43)
00092         setLineWidth(0.1, t21)
00093         t22 = createLine(34.5, 38, 34.5, 43)
00094         setLineWidth(0.1, t22)
00095         t23 = createLine(172, 38, 172, 43)
00096         setLineWidth(0.1, t23)
00097         t24 = createLine(178, 38, 178, 43)
00098         setLineWidth(0.1, t24)
00099         t25 = createLine(28.5, 164.5, 28.5, 169.5)
00100         setLineWidth(0.1, t25)
00101         t26 = createLine(34.5, 164, 34.5, 169.5)
00102         setLineWidth(0.1, t26)
00103         t27 = createLine(172, 164, 172, 169.5)
00104         setLineWidth(0.1, t27)
00105         t28 = createLine(178, 164, 178, 169.5)
00106         setLineWidth(0.1, t28)
00107         t29 = createLine(22.5, 45, 27.5, 45)
00108         setLineWidth(0.1, t29)
00109         t30 = createLine(22.5, 162, 27.5, 162)
00110         setLineWidth(0.1, t30)
00111         t31 = createLine(179.5, 45, 184.5, 45)
00112         setLineWidth(0.1, t31)
00113         t32 = createLine(179.5, 162, 184.5, 162)
00114         setLineWidth(0.1, t32)
00115         saveDocAs("pochette_CD.sla")


Variable Documentation

tuple pochette_cd.margins = (0, 0, 0, 0)

Definition at line 14 of file pochette_cd.py.

tuple pochette_cd.paper = (210, 297)

Definition at line 15 of file pochette_cd.py.