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 /tutorius/overlayer.py | |
parent | b2fdc81850ee0b922598fc55b655074c1e335cc4 (diff) |
apply code review induced fixes, fix a few discovered bugs, enjoy, rinse and repeatlp435984
Diffstat (limited to 'tutorius/overlayer.py')
-rw-r--r-- | tutorius/overlayer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorius/overlayer.py b/tutorius/overlayer.py index 6b1b948..0a3d542 100644 --- a/tutorius/overlayer.py +++ b/tutorius/overlayer.py @@ -157,7 +157,7 @@ class TextBubble(gtk.Widget): A CanvasDrawableWidget drawing a round textbox and a tail pointing to a specified widget. """ - def __init__(self, text, speaker=None, tailpos=[0,0]): + def __init__(self, text, speaker=None, tailpos=(0,0)): """ Creates a new cairo rendered text bubble. @@ -199,7 +199,7 @@ class TextBubble(gtk.Widget): # TODO fetch speaker coordinates # draw bubble tail if present - if self.tailpos != [0,0]: + if self.tailpos != (0,0): context.move_to(xradius-width/4, yradius) context.line_to(self.tailpos[0], self.tailpos[1]) context.line_to(xradius+width/4, yradius) @@ -228,7 +228,7 @@ class TextBubble(gtk.Widget): context.fill() # bubble painting. Redrawing the inside after the tail will combine - if self.tailpos != [0,0]: + if self.tailpos != (0,0): context.move_to(xradius-width/4, yradius) context.line_to(self.tailpos[0], self.tailpos[1]) context.line_to(xradius+width/4, yradius) |