"delphiro" <delphiro at zonnet.nl> wrote in message news:mailman.1056118300.27179.python-list at python.org... > if( p[0] <= xmax )and( p[0] >= xmin)and( p[1] <= ymax )and( p[1] >= ymin ): side note: above can be written more compactly and run slightly faster as if xmin <= p[0] <= xmax and ymin <= p[1] <= ymax: tjr