Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/addons/bubblemessage.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/bubblemessage.py')
-rw-r--r--addons/bubblemessage.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/bubblemessage.py b/addons/bubblemessage.py
index 2ff3454..7a8bc72 100644
--- a/addons/bubblemessage.py
+++ b/addons/bubblemessage.py
@@ -19,18 +19,17 @@ class BubbleMessage(Action):
message = TStringProperty("Message")
# Create the position as an array of fixed-size 2
position = TArrayProperty([0,0], 2, 2)
- # Do the same for the tail position
- tail_pos = TArrayProperty([0,0], 2, 2)
- tail_pos2 = TArrayProperty([0,0],2, 2)
-
- def __init__(self, message=None, pos=None, speaker=None, tailpos=None, tailpos2=None):
+ #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]], 3, 3)
+
+ def __init__(self, message=None, pos=None, speaker=None, tailpos=None):
"""
Shows a dialog with a given text, at the given position on the screen.
@param message A string to display to the user
@param pos A list of the form [x, y]
@param speaker treeish representation of the speaking widget
- @param tailpos The position of the tail of the bubble; useful to point to
+ @param tailpos The position of each tail of the bubble; useful to point to
specific elements of the interface
"""
Action.__init__(self)