diff options
author | isen <isen@isen-desktop.(none)> | 2009-10-09 04:09:42 (GMT) |
---|---|---|
committer | isen <isen@isen-desktop.(none)> | 2009-10-09 04:09:42 (GMT) |
commit | 1d062b1e7397b9413f4f73efb451bb8d890ab296 (patch) | |
tree | 2d4ad914d9a6f02c232151522e5a081de0638057 /addons/bubblemessage.py | |
parent | 335833bba32a4643e95bd31337637f5e2a075cee (diff) | |
parent | c67e568a0a34e89a77cb2121d2b3859cd6885e69 (diff) |
Merge branch 'lp426452_suite' into lp426452
lp426452_suite was the generalisation of the tail drawing (n tails)
Conflicts:
addons/bubblemessage.py
setup.cfg
tutorius/overlayer.py
Diffstat (limited to 'addons/bubblemessage.py')
-rw-r--r-- | addons/bubblemessage.py | 11 |
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) |