Esempio n. 1
0
from odpslides.presentation import Presentation

P = Presentation(background_color='darkseagreen', footer="slan example")

P.add_title_chart( title='Slan, from 1946', subtitle='A. E. van Vogt')

P.add_titled_outline_chart( title='Slans Are Evolved Humans', outline="""
The Slan are named after Samuel Lann
    The creator of Slans
There are two kinds of Slans
    With tendrils
        can read minds of ordinary humans
        can communicate telepathically with other Slans
    Without tendrils
        super intelligent
        no telepathy
        can hide thoughts from other Slan""")

P.add_titled_image( title='Ninth Big Printing', image_file='slan.png',
                    pcent_stretch_center=80, pcent_stretch_content=80)

P.save( filename='slan.odp', launch=1 )
Esempio n. 2
0
                            pcent_move_content_right=PC_RIGHT,
                            pcent_move_content_up=PC_UP)

sL = [
    '1st', '\t2nd', '\t\t3rd', '            4th', 'Normal < 1st but > 9',
    '    Indent 2nd'
]
s2L = [
    '1st(2)', '\t2nd(2)', '\t\t3rd(2)', '            4th(2)',
    'Normal < 1st but > 9(2)', '    Indent 2nd(2)'
]

P.add_titled_outline_chart(title='My Second Title',
                           outline=sL,
                           title_font_color='blue',
                           text_font_color='green',
                           pcent_stretch_center=PC_CENTER,
                           pcent_stretch_content=PC_CONTENT,
                           pcent_move_content_right=PC_RIGHT,
                           pcent_move_content_up=PC_UP)

P.add_titled_two_outline_chart(title='2 Columns of Text',
                               title_font_color='',
                               outline=sL,
                               text_font_color='r',
                               outline_2=s2L,
                               text_2_font_color='g',
                               pcent_stretch_center=PC_CENTER,
                               pcent_stretch_content=PC_CONTENT,
                               pcent_move_content_right=PC_RIGHT,
                               pcent_move_content_up=PC_UP)
countD = {}
Esempio n. 3
0
                        image_file='./examples/duck.gif', keep_aspect_ratio=True, 
                        pcent_stretch_center=PC_CENTER, pcent_stretch_content=PC_CONTENT, 
                        pcent_move_content_right=PC_RIGHT, pcent_move_content_up=PC_UP)

P.add_titled_text_and_image( text_location='bottom',
                        title='Text on Bottom', title_font_color='',  
                        outline=['My Favorite Duck','    under fire'], text_font_color='', 
                        image_file='./examples/duck.gif', keep_aspect_ratio=True, 
                        pcent_stretch_center=PC_CENTER, pcent_stretch_content=PC_CONTENT, 
                        pcent_move_content_right=PC_RIGHT, pcent_move_content_up=PC_UP)

sL = ['1st','\t2nd','\t\t3rd','            4th','Normal < 1st but > 9','    Indent 2nd']
s2L = ['1st(2)','\t2nd(2)','\t\t3rd(2)','            4th(2)','Normal < 1st but > 9(2)','    Indent 2nd(2)']
        
P.add_titled_outline_chart( title='My Second Title', outline=sL, 
                            title_font_color='blue', text_font_color='green',
                            pcent_stretch_center=PC_CENTER, pcent_stretch_content=PC_CONTENT,
                            pcent_move_content_right=PC_RIGHT, pcent_move_content_up=PC_UP)

P.add_titled_two_outline_chart(title='2 Columns of Text', title_font_color='', 
                               outline=sL, text_font_color='r', 
                               outline_2=s2L, text_2_font_color='g', 
                               pcent_stretch_center=PC_CENTER, pcent_stretch_content=PC_CONTENT,
                               pcent_move_content_right=PC_RIGHT, pcent_move_content_up=PC_UP)
countD = {}
content_item_N = 1
def get_class_name( frame_class ):
    global content_item_N
    N = countD.get(frame_class, 1)
    countD[frame_class] = N + 1
    
    if 1:#if frame_class not in ['date-time', 'footer', 'page-number', 'title']: