Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--addons/bubblemessage.py3
-rw-r--r--tutorius/overlayer.py4
-rw-r--r--tutorius/properties.py4
3 files changed, 5 insertions, 6 deletions
diff --git a/addons/bubblemessage.py b/addons/bubblemessage.py
index 0e75dc4..eb82ea3 100644
--- a/addons/bubblemessage.py
+++ b/addons/bubblemessage.py
@@ -19,9 +19,8 @@ class BubbleMessage(Action):
message = TStringProperty("Message")
# Create the position as an array of fixed-size 2
position = TArrayProperty([0,0], 2, 2)
- #postion = TPositionProperty((0,0)) May be it will be not possible to modify the position with a TPositionProperty.
#Create a list of tail positions as an array of N element : N to be defined...
- tail_pos = TArrayOneTypeProperty([[0,0],[0,0],[0,0]], 2, 3)
+ tail_pos = TArrayOneTypeProperty([[0,0],[0,0],[0,0]], 3, 3)
def __init__(self, message=None, pos=None, speaker=None, tailpos=None):
diff --git a/tutorius/overlayer.py b/tutorius/overlayer.py
index d2cb3ac..8203aa6 100644
--- a/tutorius/overlayer.py
+++ b/tutorius/overlayer.py
@@ -198,7 +198,7 @@ class TextBubble(gtk.Widget):
#
# TODO fetch speaker coordinates
- # draw bubble tail if present
+ # draw bubble tails if present
for i in range(len(self.tailpos)):
if self.tailpos[i] != [0,0]:
context.move_to(xradius-width/4, yradius)
@@ -228,7 +228,7 @@ class TextBubble(gtk.Widget):
context.set_source_rgb(*xo_fill_color)
context.fill()
- # bubble painting. Redrawing the inside after the tail will combine
+ # bubble painting. Redrawing the inside after tails will combine
for i in range(len(self.tailpos)):
if self.tailpos[i] != [0,0]:
context.move_to(xradius-width/4, yradius)
diff --git a/tutorius/properties.py b/tutorius/properties.py
index 55b02ca..f2367d7 100644
--- a/tutorius/properties.py
+++ b/tutorius/properties.py
@@ -207,8 +207,8 @@ class TArrayProperty(TutoriusProperty):
self.indexeur = value #stock la value, pour l'indexation
self.default = self.validate(value)
- def __getitem__(self, key): # obligation de redéfinir l'indexation
- return self.indexeur[key] #
+ #def __getitem__(self, key): # obligation de redéfinir l'indexation
+ # return self.indexeur[key] #
class TColorProperty(TutoriusProperty):
"""