Changeset 615:e71e13dbd570


Ignore:
Timestamp:
May 3, 2011, 11:28:41 PM (9 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Message:

Properly copy pos when creating parts of speech bubbles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/widgets/bubble.py

    r527 r615  
    5555        state = self.dsm.get_state()
    5656        if state.text:
    57             pos = pos.move(0, 0) # copy
    58             self._text = Text(state.text, pos, wrap=True)
     57            # pos.move(0, 0) copies pos
     58            self._text = Text(state.text, pos.move(0, 0), wrap=True)
    5959        else:
    6060            self._text = None
     
    6565        else:
    6666            options.append(("Leave", "L"))
    67         pos = pos.move(0, 0) # copy
    68         self._text_choice = TextChoice(options, pos, wrap=True)
     67        # pos.move(0, 0) copies pos
     68        self._text_choice = TextChoice(options, pos.move(0, 0), wrap=True)
    6969        self._text_choice.callbacks.append(self._selected)
    7070
Note: See TracChangeset for help on using the changeset viewer.