diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-10-02 22:24:56 (GMT) |
---|---|---|
committer | mike <michael.jmontcalm@gmail.com> | 2009-10-02 22:24:56 (GMT) |
commit | cf40c1951f4f0f26090226fb4969ca147341a031 (patch) | |
tree | b3bb17043645aff11a93940eba90d7488bcebf45 /addons | |
parent | 09b2ea3369df967309f030f9196c2f9861bc1b2c (diff) |
LP 439980 : Refactored the XMLSerializer to support complex components; Corrected specs for the addons properties and constructor parameters names; Moved all existing actions and events to components (except a few left in code for testing purposes)
Diffstat (limited to 'addons')
-rw-r--r-- | addons/bubblemessage.py | 14 | ||||
-rw-r--r-- | addons/dialogmessage.py | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/addons/bubblemessage.py b/addons/bubblemessage.py index a859ef8..c499bdb 100644 --- a/addons/bubblemessage.py +++ b/addons/bubblemessage.py @@ -22,22 +22,22 @@ class BubbleMessage(Action): # Do the same for the tail position tail_pos = TArrayProperty([0,0], 2, 2) - def __init__(self, message=None, pos=None, speaker=None, tailpos=None): + def __init__(self, message=None, position=None, speaker=None, tail_pos=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 position 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 tail_pos The position of the tail of the bubble; useful to point to specific elements of the interface """ Action.__init__(self) - if pos: - self.position = pos - if tailpos: - self.tail_pos = tailpos + if position: + self.position = position + if tail_pos: + self.tail_pos = tail_pos if message: self.message = message diff --git a/addons/dialogmessage.py b/addons/dialogmessage.py index 22a223b..298466a 100644 --- a/addons/dialogmessage.py +++ b/addons/dialogmessage.py @@ -22,19 +22,19 @@ class DialogMessage(Action): message = TStringProperty("Message") position = TArrayProperty([0, 0], 2, 2) - def __init__(self, message=None, pos=None): + def __init__(self, message=None, position=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 position A list of the form [x, y] """ super(DialogMessage, self).__init__() self._dialog = None if message: self.message = message - if pos: self.position = pos + if position: self.position = position def do(self): """ |