diff options
Diffstat (limited to 'addons/bubblemessage.py')
-rw-r--r-- | addons/bubblemessage.py | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/addons/bubblemessage.py b/addons/bubblemessage.py index 42a2e7e..0e75dc4 100644 --- a/addons/bubblemessage.py +++ b/addons/bubblemessage.py @@ -19,16 +19,11 @@ 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) - # - # ?:;:.? - # - test = TPositionProperty((0,0)) - test2 = TArrayOneTypeProperty([position,tail_pos], 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) + + 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. @@ -36,7 +31,7 @@ class BubbleMessage(Action): @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) |