Can anyone explain to me how i can create a rectangle via "python canvas" with example? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone explain to me how i can create a rectangle via "python canvas" with example?

Creating a rectangle via python

18th Aug 2018, 11:21 AM
Saeed Mozaffari
Saeed Mozaffari - avatar
3 Answers
+ 4
You might be looking for something like pygame. You can draw your basic rectangles and circles, and you can also make complex graphics and games with it. https://www.pygame.org You can also try Processing. You need to download the software, but it is more beginner friendly and easier to learn https://py.processing.org/
18th Aug 2018, 11:45 AM
Just A Rather Ridiculously Long Username
+ 1
Just A Rather Ridiculously Long Username I wrote a code in the python interpreter.In fact I copied from a tutorial but it didn't draw a complete rectangle. I don't know why.
19th Aug 2018, 4:07 AM
Saeed Mozaffari
Saeed Mozaffari - avatar
0
Could you show the code?
20th Aug 2018, 2:40 PM
Just A Rather Ridiculously Long Username