Posts

Showing posts with the label thecreatricks

Convert your Python file to executable windows file

Image
Hi mates , In this post we are going to learn how to convert your python files(apps,games,animations etc.) to an executable windows file, so that you can distribute it on web or to your friend and family without asking them to separately download python or any library for python. There are many methods to do this including Py2exe , cx_Freeze , Pyinstaller  and some other. they all do pretty much the same thing they freeze(or compile) your python file into executable file(or a single package). We are going to use Pyinstaller , because it is very easy to use ,comes with different feature, it is compatible with 3rd party packages and also supports most of the python libraries(including PyQt, Django and matplotlib). I am going to use the python file made in my last post on Sorting algorithm animation using Pygame  . I made a little change so that animation doesn't stop after sorting is completed ,instead it starts again with new random array.You can download the file ...

5 Easy steps for beginners to make animation of sorting algorithms using Pygame

Image
Hi guys... So if you are seeing this article that means you are ready to make your animations of sorting algos. Alright so we can start without wasting the time. So We are going to use Python language to make these animation... What?? what are you talking about .I don't know anything about  python. how am i supposed to make animations now... Chill..relax..?? When i made these myself i was also a beginner but it doesn't change the fact i wanted to make one of  these animation. So i started and guess what? there is nothing to fear about python its just a language not actually a python(tell me you got my poor pun). You just believe in yourself and start ,its easier then it sounds. Alright below are some steps of how you can get started..(crack your knuckles you are going to be awesome): STEP:1- Installing the prerequisites: first you need to install python on your system . you can do it by going to below link and choosing a package depending on your system ...