diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-19 17:13:52 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-19 17:13:52 (GMT) |
commit | 88013b2f9f93c3220812cd3b624db1423ac081ed (patch) | |
tree | f78aba3242a311bbc26ec04edee1970158a1194b /addons/bubblemessage.py | |
parent | b2fdc81850ee0b922598fc55b655074c1e335cc4 (diff) |
apply code review induced fixes, fix a few discovered bugs, enjoy, rinse and repeatlp435984
Diffstat (limited to 'addons/bubblemessage.py')
-rw-r--r-- | addons/bubblemessage.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/bubblemessage.py b/addons/bubblemessage.py index a859ef8..b8f7405 100644 --- a/addons/bubblemessage.py +++ b/addons/bubblemessage.py @@ -18,9 +18,9 @@ from sugar.tutorius.actions import * class BubbleMessage(Action): message = TStringProperty("Message") # Create the position as an array of fixed-size 2 - position = TArrayProperty([0,0], 2, 2) + position = TArrayProperty((0,0), 2, 2) # Do the same for the tail position - tail_pos = TArrayProperty([0,0], 2, 2) + tail_pos = TArrayProperty((0,0), 2, 2) def __init__(self, message=None, pos=None, speaker=None, tailpos=None): """ @@ -94,7 +94,7 @@ class BubbleMessage(Action): def exit_editmode(self, *args): x,y = self._drag.position - self.position = [int(x), int(y)] + self.position = (int(x), int(y)) if self._drag: self._drag.draggable = False self._drag = None |