diff options
author | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-19 20:15:41 (GMT) |
---|---|---|
committer | Vincent Vinet <vince.vinet@gmail.com> | 2009-10-19 20:15:41 (GMT) |
commit | 912528253fcf1fc43c1a2d02ffe6e540fe60d8e7 (patch) | |
tree | 1d5c075046d260580c9eeb27d0d7d09045a7d4b5 /tutorius/overlayer.py | |
parent | 6584510d390a37153c20974da6704a907058fea0 (diff) |
Merge the TProbe Integration and fix merging induced bugs
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) |