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...
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With