Re: new python module for simplifying some tasks
Re: new python module for simplifying some tasks Hello,You can also use CX_FreezeAt audiogames.net fan, awesome job, I dont even know how to open the URL... I think that you have everything you need to make a text adventure! Just use a while loop. URL: http://forum.audiogames.net/viewtopic.php?pid=229264#p229264 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: new python module for simplifying some tasks
Re: new python module for simplifying some tasks Be aware that if you intend to use q-continuums or similar packages that need external dependencies, you need package.find_datafiles(). I know of a way to include these in py2exe, but im not sure if you can do it in pyinstaller. Most likely you can, however. URL: http://forum.audiogames.net/viewtopic.php?pid=22#p22 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: new python module for simplifying some tasks
Re: new python module for simplifying some tasks Personally I use Pyinstaller, but you can also use Py2exe. URL: http://forum.audiogames.net/viewtopic.php?pid=228887#p228887 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: new python module for simplifying some tasks
Re: new python module for simplifying some tasks Be aware that if you intend to use q-continuum or similar packages that need external dependencies, you need package.find_datafiles(). I know of a way to include these in py2exe, but im not sure if you can do it in pyinstaller. Most likely you can, however. URL: http://forum.audiogames.net/viewtopic.php?pid=22#p22 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: new python module for simplifying some tasks
Re: new python module for simplifying some tasks Hello momo.Yes pyinstaller or py2exe just be aware that using py2exe only gives you a windows executable. If you want to compile for windows mac and linux use pyinstaller. Basically use pyinstaller if you want your program to be cross-platform. URL: http://forum.audiogames.net/viewtopic.php?pid=228979#p228979 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: new python module for simplifying some tasks
Re: new python module for simplifying some tasks hiI have a questionMy question is not about this topic, but how to compile my python programs into exe files?Thanks URL: http://forum.audiogames.net/viewtopic.php?pid=228876#p228876 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
new python module for simplifying some tasks
2015-08-22
Thread
AudioGames . net Forum — Developers room : audiogames . net fan via Audiogames-reflector
new python module for simplifying some tasks Hi,Me and my friend Ethan have created a python module containing some functions that simplify such things as getting a random item from a list or checking if a number is even. The module is called useful beginner functions or ubf for short.Here are all the functions:numberinput(str): shows a standard prompt which you can do with raw_input(), but returns the number you type.file_read(filename): returns the contents of a file.file_write(filename,str): writes a string to a file. filename is obviously the file to write to, for example file.txt or something like that and str is the string to write to it.listtostring(list): takes a list and converts it into a string.listcon(list1,list2): puts 2 lists together into one list.password(pwd,str): displays a prompt over and over again until the player gets the password right. Password is the password that is right, and str is the string to display when the prompt pops up, for example: Enter the password.openurl(url): Opens a website in your default browser.circum(r): Gets the circumference of a circle.file_delete_contents(filename): Deletes the contents of a file.is_even(number): Returns 1 or 0 depending on if a number is even or not.randlist(list): returns a random item in a list. For example if you had a list containing the items apple, orrange, and bananna, it could return any one of those 3.Those are all the functions. The link is: https://dl.dropboxusercontent.com/u/24767067/ubf.py URL: http://forum.audiogames.net/viewtopic.php?pid=228835#p228835 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector