From 70f6002ab9be2a6999db569afbe324bc9bc7d80d Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Wed, 24 Oct 2018 19:45:18 -0400 Subject: [PATCH] Added code for version 2.7 --- Demo_Google_TTS.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Demo_Google_TTS.py b/Demo_Google_TTS.py index b49b644e..c3863fa8 100644 --- a/Demo_Google_TTS.py +++ b/Demo_Google_TTS.py @@ -1,4 +1,9 @@ -import PySimpleGUI as sg +#!/usr/bin/env python +import sys +if sys.version_info[0] >= 3: + import PySimpleGUI as sg +else: + import PySimpleGUI27 as sg from gtts import gTTS from pygame import mixer import time