Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified GUI/__pycache__/gui.cpython-36.pyc
Binary file not shown.
5 changes: 5 additions & 0 deletions GUI/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from kivy.uix.floatlayout import FloatLayout
from kivy.properties import StringProperty, ListProperty
from kivy.graphics import Canvas, Color, Rectangle
import pyttsx3

player1_character = "None"
player2_character = "None"
Expand Down Expand Up @@ -88,11 +89,15 @@ def update(self, *args):
self.p2_stocks = str(player2_stocks)

#---------------CONSOLE----------------------------------------------
#tts = pyttsx3.init()

if(not shared_commentary_queue.empty()):
temp_list = []
temp_list = shared_commentary_queue.get().split('\n')
for index in temp_list:
commentary.append(index + '\n')
#tts.say(index)
#tts.runAndWait()
shared_commentary_queue.task_done()

if len(commentary) > 12:
Expand Down