How to draw grid world using Python

I want to draw a Grid World (similar to a table) where cells can contain robots or obstacles. The point / arrow is designed to represent the robot and color the cells black so that the examples can represent obstacles.

I'm not looking for anything complicated, just a simple python library that would help me do this. Any suggestions?

+3
source share
2 answers

tkinter has a canvas widget that is pretty easy to work with. It has primitives for lines and filled polygons and circles, etc. And with an event loop its pretty easy to make a simple animation.

+1
source

, python?

/ , PyQt. GUI, , .

0

Source: https://habr.com/ru/post/1787477/


All Articles