Mercurial > skaapsteker
changeset 291:04be4219742b
Add support for auto_next_text to give the auto_next effect but with a different prompt.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Fri, 08 Apr 2011 21:58:35 +0200 |
parents | c68f2f3efc7f |
children | 93352ab52f2e |
files | skaapsteker/dialogue.py skaapsteker/widgets/bubble.py |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/skaapsteker/dialogue.py Fri Apr 08 21:58:48 2011 +0200 +++ b/skaapsteker/dialogue.py Fri Apr 08 21:58:35 2011 +0200 @@ -103,6 +103,7 @@ pseudo_path)) auto_next = state_src.get("auto_next", None) + self.auto_next_text = state_src.get("auto_next_text", None) self.auto_next = False if auto_next is not None: self.auto_next = True
--- a/skaapsteker/widgets/bubble.py Fri Apr 08 21:58:48 2011 +0200 +++ b/skaapsteker/widgets/bubble.py Fri Apr 08 21:58:35 2011 +0200 @@ -27,7 +27,8 @@ self._text = None options = [(text, i) for (i, text) in state.choices] if state.auto_next: - options.append(("Next", "N")) + text = state.auto_next_text if state.auto_next_text else "Next" + options.append((text, "N")) else: options.append(("Leave", "L")) pos = pos.move(0, 0) # copy