Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 3.4 - Library for 2D graphics [closed]

As title says, I'm looking for a 2D graphic library, where I can create a window, and then draw lines and basic shapes on it. I was searching around for a similar topics, and I've found something about GTK & Cairo. I have some experience with drawing in Java 2D Graphics library, so I would like to be able to create some small games like Space Invaders, Snake...

like image 680
user3385945 Avatar asked Apr 05 '14 13:04

user3385945


People also ask

Which Python package is used for 2D graphics *?

Matplotlib is a 2D graphics package used for Python for application development, interactive scripting, and publication-quality image generation across user interfaces and operating systems.

Does Python have built in graphics library?

Tkinter is one of Python's standard and easy-to-use Graphical User Interface (GUI) libraries that normally comes bundled with Python. There are many others with additional capabilities, platform support, and additional modern widgets.


1 Answers

If you are looking for a slightly more static version of GUI which is less about moving visuals, you should check out Tkinter which comes as python's default GUI

On the other hand, if you want to make "small games like Space Invaders, Snake...", the pygame module would provide you with a great set of tools to easily create these games. I suggest you check them both out and see which one suits your needs better.

Good Luck

like image 117
sshashank124 Avatar answered Sep 30 '22 07:09

sshashank124