Previous topic

Image

Next topic

Runner

This Page

Region

Module: region

Author: arjs.net

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

Module for the region dictionary

class region.RegionDictionary(screenwidth, screenheight)

RegionDictionary: Dictionary of some useful regions

__init__(screenwidth, screenheight)
Parameters:
  • screenwidth (int) –
  • screenheight (int) –
Return type:

RegionDictionary

addreg(name, reg)
Parameters:
  • name (str) – Name of the region
  • reg (Region) – Region defintion
Return type:

None

Add a region

getreg(name)
Parameters:name (str) – Name of the region
Returns:
Return type:Region

Get a region by name