From 88013b2f9f93c3220812cd3b624db1423ac081ed Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Mon, 19 Oct 2009 17:13:52 +0000 Subject: apply code review induced fixes, fix a few discovered bugs, enjoy, rinse and repeat --- (limited to 'addons/bubblemessage.py') 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 -- cgit v0.9.1