The pygam Module

Python Gallery Maker version 0.2 beta

Module Contents

copyright() [#]

Make a HTML code for copyright bar

void
 
Returns:
string - HTML code

main(argv=None) [#]

Main loop

arg
- command line arguments

makeABeginTag(filename, width, height) [#]

Make a HTML anchor tag - filling tag with width, height and file source

filename
- image source
width
- image width
height
- image height
Returns:
string - HTML code

makeGallery(filename, width, height) [#]

Make a final gallery

filename
- name of output file
width
- thubnail width
height
- thumbnail height
Returns:
void

makeHtmlFooter() [#]

Make a HTML footer of gallery page

void
 
Returns:
string - HTML code

makeHtmlHeader() [#]

Make a HTML header of gallery page

void
 
Returns:
string - HTML code

makeImgTag(filename, width, height) [#]

Make a HTML image tag - filling tag with width, height and file source

filename
- image source
width
- image width
height
- image height
Returns:
string - HTML code

makeOpenWindow() [#]

Make a Java Script code for opening new window

void
 
Returns:
string - Java Script code

makePreview() [#]

Make a HTML code for image preview window - HTML + Java Script for correct and strict size

void
 
Returns:
string - HTML code

makePreviewFile() [#]

Make a file for image preview

void
 
Returns:
void

makeStyle() [#]

Make a block of gallery style definition using CSS

void
 
Returns:
string - CSS code

makeTdBeginTag(width, height) [#]

Make a HTML table column tag - filling tag style with width and height

width
- column width
height
- column height
Returns:
string - HTML code