# HG changeset patch # User Simon Cross # Date 1304465321 -7200 # Node ID e71e13dbd5709ab138e339bd4ac29491b5986bcc # Parent bc793415259cf3d8c35a7d1f60443593b6da649a Properly copy pos when creating parts of speech bubbles. diff -r bc793415259c -r e71e13dbd570 skaapsteker/widgets/bubble.py --- a/skaapsteker/widgets/bubble.py Sun Apr 24 20:46:06 2011 +0200 +++ b/skaapsteker/widgets/bubble.py Wed May 04 01:28:41 2011 +0200 @@ -54,8 +54,8 @@ pos = pygame.Rect((0, 0), (300, 1)) state = self.dsm.get_state() if state.text: - pos = pos.move(0, 0) # copy - self._text = Text(state.text, pos, wrap=True) + # pos.move(0, 0) copies pos + self._text = Text(state.text, pos.move(0, 0), wrap=True) else: self._text = None options = [(text, i) for (i, text) in self.dsm.choices()] @@ -64,8 +64,8 @@ options.append((text, "N")) else: options.append(("Leave", "L")) - pos = pos.move(0, 0) # copy - self._text_choice = TextChoice(options, pos, wrap=True) + # pos.move(0, 0) copies pos + self._text_choice = TextChoice(options, pos.move(0, 0), wrap=True) self._text_choice.callbacks.append(self._selected) def _selected(self, i, data):