From 26644da7b422ff87ec5cedeb36ae3e55bb802f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Thu, 12 Mar 2015 17:55:54 -0600 Subject: [PATCH] Changes the text for the logout button when is needed --- src/controller/buffersController.py | 1 + src/output.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controller/buffersController.py b/src/controller/buffersController.py index 0a6f6ebf..fe47b4ce 100644 --- a/src/controller/buffersController.py +++ b/src/controller/buffersController.py @@ -153,6 +153,7 @@ class accountPanel(bufferController): self.buffer.change_login(login=False) widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.logout) else: + self.buffer.change_login(login=True) widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.login) def login(self, *args, **kwargs): diff --git a/src/output.py b/src/output.py index 3ba6eb16..c97fdccc 100644 --- a/src/output.py +++ b/src/output.py @@ -7,11 +7,11 @@ import sys speaker = None -def speak(text, interrupt=False): +def speak(text, interrupt=0): global speaker if not speaker: setup() - speaker.speak(text,interrupt) + speaker.speak(text, interrupt) def setup (): global speaker