Re: [pygame] more list problems

2007-09-20 Thread Noah Kantrowitz
An idiomatic way would be this: if event.button == 3: rect = [r for r in rect if not r.collidepoint(*event.pos)] --Noah On Sep 20, 2007, at 8:18 PM, Eric Hunter wrote: so I have been able to write pygame.Rect rectangles into rect-type lists. but now I'm trying to delete unwanted

Re: [pygame] more list problems

2007-09-20 Thread DR0ID
Eric Hunter schrieb: so I have been able to write pygame.Rect rectangles into rect-type lists. but now I'm trying to delete unwanted rectangles that are printed to the screen. when I draw one at a time, I can only delete the last drawn rectangle before deleting the previous ones. I want to