This is somewhat of a cross post,but I think it applies here as well.
If I use as command line script, is there any disruption in the
execution of the code using wxpython.

In other words, is a command line app different from bindings in a compiled app?

       @ trace
       def play(self, event = None, text = None):


               if event == None:

                       self.textlist = []
                       for item in text.split(' '):
                               self.textlist.append(item)
                       print self.textlist
                       for word in self.textlist:
                               self.espeak =
subprocess.Popen(['espeak', word], stdout =
subprocess.PIPE).communicate()[0]

               if event != None:

                       self.textlist = []
                       for item in self.text2speech.GetValue().split(' '):
                               self.textlist.append(item)
                       print self.textlist
                       for word in self.textlist:
                               self.espeak =
subprocess.Popen(['espeak', word], stdout =
subprocess.PIPE).communicate()[0]

-- 
Sometimes...my mama...says I get over excited about technology.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to