Changeset 82:49b25117ebbb


Ignore:
Timestamp:
Apr 4, 2011, 10:10:05 AM (9 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Message:

rect.copy() is a pygame 1.9 addition. Work around this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/widgets/text.py

    r79 r82  
    3838
    3939    def draw(self, surface):
    40         pos = self.rect.copy()
     40        pos = self.rect
    4141        for line in self.surfaces:
    4242            surface.blit(line, pos)
    43             pos.move_ip(0, self.font.get_linesize())
     43            pos = pos.move(0, self.font.get_linesize())
    4444
    4545
     
    4848        self.options = []
    4949        self.rect = pygame.Rect(pos, (0, 0))
    50         self.selector = Text(u'» ', self.rect.copy(), **kwargs)
     50        self.selector = Text(u'» ', pos, **kwargs)
    5151        self.selected = 0
    5252        self.callbacks = []
Note: See TracChangeset for help on using the changeset viewer.