M
M
Mikhail Markov2021-01-15 13:17:54
pygame
Mikhail Markov, 2021-01-15 13:17:54

How to draw graphics primitives with python?

I need some geometric shape - a square or a triangle - to appear on an empty area of ​​​​the application screen when the left mouse button is pressed. I don't know which is better for this: tkinger or pygame ? Or is there something else?
I'm pretty good at working with the pygame library , but I don't have any experience with tkinter and don't know if this library is right for me. Tell me, please, which is better to choose?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
o5a, 2021-01-16
@o5a

Then why tkinter, in pygame you can draw these primitives
https://www.pygame.org/docs/ref/draw.html

R
Roma Kotolup, 2021-04-30
@roma2

You can use both tkinter and pygame to draw.
But if you don't know tkinter use pygame:
drawing primitives in pygame

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question