mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Changes the text for the logout button when is needed
This commit is contained in:
parent
4465f6e8aa
commit
26644da7b4
@ -153,6 +153,7 @@ class accountPanel(bufferController):
|
|||||||
self.buffer.change_login(login=False)
|
self.buffer.change_login(login=False)
|
||||||
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.logout)
|
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.logout)
|
||||||
else:
|
else:
|
||||||
|
self.buffer.change_login(login=True)
|
||||||
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.login)
|
widgetUtils.connect_event(self.buffer.login, widgetUtils.BUTTON_PRESSED, self.login)
|
||||||
|
|
||||||
def login(self, *args, **kwargs):
|
def login(self, *args, **kwargs):
|
||||||
|
@ -7,11 +7,11 @@ import sys
|
|||||||
|
|
||||||
speaker = None
|
speaker = None
|
||||||
|
|
||||||
def speak(text, interrupt=False):
|
def speak(text, interrupt=0):
|
||||||
global speaker
|
global speaker
|
||||||
if not speaker:
|
if not speaker:
|
||||||
setup()
|
setup()
|
||||||
speaker.speak(text,interrupt)
|
speaker.speak(text, interrupt)
|
||||||
|
|
||||||
def setup ():
|
def setup ():
|
||||||
global speaker
|
global speaker
|
||||||
|
Loading…
Reference in New Issue
Block a user