def pix2cmcoord(self, x, y, display_index=None): #print2err('Display {0} bounds: {1}'.format(display_index,self.getBounds())) if display_index == self.getIndex(): ppx, ppy = display2psychopyPix(x, y) return misc.pix2cm( ppx, self._psychopy_monitor), misc.pix2cm( ppy, self._psychopy_monitor) return x, y