Package mdp :: Package utils :: Class ImageHTMLSlideShow
[hide private]
[frames] | no frames]

Class ImageHTMLSlideShow


Slideshow for images.

This also serves as an example for implementing a slideshow based on HTMLSlideShow.

Instance Methods [hide private]
 
__init__(self, filenames, image_size, magnification=1, mag_control=True, **kwargs)
Return the complete HTML code for a slideshow of the given images.
 
html_box_template(self, _TemplateMetaClass__dict=None, **kw)
 
html_controls_template(self, _TemplateMetaClass__dict=None, **kw)
 
html_mag_template(self, _TemplateMetaClass__dict=None, **kw)
 
js_controls_resize_template(self, _TemplateMetaClass__dict=None, **kw)
 
js_controls_template(self, _TemplateMetaClass__dict=None, **kw)
 
js_loadslide_template(self, _TemplateMetaClass__dict=None, **kw)
 
js_onload_template(self, _TemplateMetaClass__dict=None, **kw)

Inherited from unreachable.StringTemplate: __str__, write

Inherited from unreachable.newobject: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

    Inherited from HTMLSlideShow
 
_get_random_id(self)
Factory method for random slideshow id.
 
html_bottom_template(self, _TemplateMetaClass__dict=None, **kw)
 
html_buttons_template(self, _TemplateMetaClass__dict=None, **kw)
 
html_delay_template(self, _TemplateMetaClass__dict=None, **kw)
 
html_top_template(self, _TemplateMetaClass__dict=None, **kw)
 
js_keyboard_shortcuts_template(self, _TemplateMetaClass__dict=None, **kw)
 
js_update_template(self, _TemplateMetaClass__dict=None, **kw)
 
template(self, _TemplateMetaClass__dict=None, **kw)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filenames, image_size, magnification=1, mag_control=True, **kwargs)
(Constructor)

 
Return the complete HTML code for a slideshow of the given images.

filenames -- sequence of strings, containing the path for each image
image_size -- Tuple (x,y) with the original image size, or enter
    a different size to force scaling.
magnification -- Magnification factor for images (default 1). This
    factor is applied on top of the provided image size.
mag_control -- Set to True (default) to display a magnification control
    element.

For additional keyword arguments see the super class.

Overrides: object.__init__

html_box_template(self, _TemplateMetaClass__dict=None, **kw)

 
Overrides: HTMLSlideShow.html_box_template

html_controls_template(self, _TemplateMetaClass__dict=None, **kw)

 
Overrides: HTMLSlideShow.html_controls_template

html_mag_template(self, _TemplateMetaClass__dict=None, **kw)

 

js_controls_resize_template(self, _TemplateMetaClass__dict=None, **kw)

 

js_controls_template(self, _TemplateMetaClass__dict=None, **kw)

 
Overrides: HTMLSlideShow.js_controls_template

js_loadslide_template(self, _TemplateMetaClass__dict=None, **kw)

 
Overrides: HTMLSlideShow.js_loadslide_template

js_onload_template(self, _TemplateMetaClass__dict=None, **kw)

 
Overrides: HTMLSlideShow.js_onload_template