From b7d1b3a3f392e0bd5f4edafb8dd4b9e7d69b305f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 17 Nov 2015 17:24:14 +0100 Subject: Add optional style attribute for popup hints --- server/hints.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/hints.py b/server/hints.py index 4c97510..62999ca 100644 --- a/server/hints.py +++ b/server/hints.py @@ -15,6 +15,7 @@ class Hint(object): # Hint sequence: static type, but each time a hint is sent, increase the # message index until the last message is reached, then repeat that. +# NOTE not used, check if we can remove this class HintSequence(Hint): def __init__(self, name, length): self.name = name @@ -32,8 +33,10 @@ class HintSequence(Hint): class HintPopup(Hint): hint_type = 'popup' - def __init__(self, name): + def __init__(self, name, style=None): self.name = name + self.style = style def instantiate(self, hint, prev_hints): - pass + if self.style is not None: + hint['style'] = self.style -- cgit v1.2.1