Re: Python Questions
Re: Python Questions okay I installed accessible_output2. I get the error that says that %1 is not a valid win32 application. What do I do to fix this? URL: http://forum.audiogames.net/viewtopic.php?pid=300424#p300424 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Python Questions
Re: Python Questions To print a list without the brackets you can use this example:shopping = ['green eggs',1234,'ham',5678] print ', '.join(str(a) for a in shopping)Other than the aforementioned accessible_output2, libaudioverse, and [PyAL] , there's also [Pyglet]. For screen readers there's also [Tolk] and [Pyttsx], although Pyttsx only supports native tts. URL: http://forum.audiogames.net/viewtopic.php?pid=300343#p300343 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Python Questions
2017-03-03
Thread
AudioGames . net Forum — Developers room : brian . kurosawa via Audiogames-reflector
Re: Python Questions But keep in mind that libaudioverse does have some audio problems, as i noticed on games that used it like the shooter engine and the new death match. I don't know if the developer fixed it successfully, but if not you could use PyAL. URL: http://forum.audiogames.net/viewtopic.php?pid=300341#p300341 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Python Questions
Re: Python Questions for i in list: print(i)For sound, there's libaudioverse at https://github.com/camlorn/libaudioverseIt's just a pip install libaudioverse awayfor speech, there's accessible_output2, but you have to have to use the hg+ prefix, like this:pip install hg+http://hg.q-continuum.net/libloader hg+http://hg.q-continuum.net/platform_utils hg+http://hg.q-continuum.net/accessible_output2That should get you AO2+the dependencies. URL: http://forum.audiogames.net/viewtopic.php?pid=300337#p300337 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Python Questions
Re: Python Questions thanks. I have 2 more questions:1. How do you print the items in a list without the brackets that a list usually contains?2. What would be the best libraries for sound and screen reader usage in Python and sound usage, and what would be a good way to install them with dependencies included?Thanks. URL: http://forum.audiogames.net/viewtopic.php?pid=300315#p300315 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: Python Questions
Re: Python Questions Use can use the pickle module to pack and unpack lists, dictionaries, and other data for writing to a text document. Example:import pickle #write data def write(data,name): tmp = open(name,'w') pack = pickle.dumps(data) tmp.write(pack) tmp.close() #read data def read(name): tmp = open(name,'r') pack = tmp.read() data = "" tmp.close() return data shopping = ['green eggs',1234,'ham',5678] write(shopping,'test.txt') tmp = read('test.txt') print tmp URL: http://forum.audiogames.net/viewtopic.php?pid=299748#p299748 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector