pygame: rect moveto?

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Sat May 3 13:34:29 EDT 2008


On Sat, 03 May 2008 09:51:06 -0700, globalrev wrote:

> http://www.pygame.org/docs/ref/rect.html#Rect.move
> 
> well i need to put my rect ina specific place and i donw know from
> where i will move it so i need a function rect.moveTo(x,y).
> 
> how do i do that?

No need for a function or method::

  rect.topleft = (x, y)

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list