Previous topic

Counts

Next topic

Region

This Page

Image

Module: image

Author: arjs.net

License: http://opensource.org/licenses/mit-license.html; year=2013,2014; copyright holders=arjs.net

Module for the image dictionary

class image.ImagesDictionary(imagespath, specificpath)

ImagesDictionary: Dictionary for all images in the images folders

__init__(imagespath, specificpath)
Parameters:
  • imagespath (str) –
  • specificpath (str) –
Return type:

ImagesDictionary

addimage(name, img)
Parameters:
  • name (str) – Image name
  • img (img) – Image path
Return type:

None

Add a image to dictionary

addimagesfromfolder(folder, specific)
Parameters:
  • folder (str) – Image folder
  • specific (str) – Filter for specific endings
Return type:

None

Add images from a folder

getimage(name)
Parameters:name (str) – Image name
Returns:
Return type:None

Retruns the requested image

Raises EnvironmentError: