Home | Trees | Indices | Help |
---|
|
1 import util.TimeOps as clock 2 import util.ComponentRegistry as compReg 3 import util.Strings as Strings 4 from operationscore.Input import *6 '''Continuously returns one of nine positions on the screen as specified by the xloc 7 and yloc arguments, which can take values 'min', 'max', and 'center'. '''209 xvals = {} 10 yvals = {} 11 compReg.getLock().acquire() 12 xvals['left'], yvals['bottom'], xvals['right'], yvals['top'] = compReg.getComponent('Screen').getSize() 13 compReg.getLock().release() 14 (xvals['center'], yvals['center']) = ((xvals['left']+xvals['right']) / 2, (yvals['top']+yvals['bottom']) / 2) 15 16 self.location = (xvals[self['xloc']], yvals[self['yloc']])17
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Feb 18 16:55:26 2011 | http://epydoc.sourceforge.net |