Use the odfpy api for `Openbaar Schrijver' book.
[openbaar_schrijver.git] / doc / frame_docs.py
blobcba6a552f977c91681cc1f1d8da0bb517103a075
1 ### graphic
2 graphic_style_B = Style(name="red_style", family="graphic")
3 graphic_properties_B = GraphicProperties(border="1cm double #000000",
4 padding="1cm",
5 backgroundcolor="#ff0000")
6 graphic_style_B.addElement(graphic_properties_B)
7 beehive_B = beehive(myodt, graphic_style_B, "10cm", "15cm", "4cm", "4cm", "1")
8 frame_B = beehive_B["frame"]
9 textbox_B = beehive_B["textbox"]
11 ### paragraphic
12 letter_style_B = Style(name="diluvienne_style",
13 family="paragraph")
14 text_properties_B = TextProperties(fontsize="40pt",
15 fontfamily="diluvienne")
16 letter_style_B.addElement(text_properties_B)
17 paragraph_properties_B = ParagraphProperties(textalign="left")
18 letter_style_B.addElement(paragraph_properties_B)
19 myodt.styles.addElement(letter_style_B)
21 text_unit(myodt, letter_style_B, "morning", textbox_B)
22 myodt.text.addElement(frame_B)