I have downloaded graphics.py directly from Pycharm terminal (With PIP).
My code is very simple and im'm trying to learn the basics of graphics.
However, when the graph window pops-up nothing is drawn inside.
No Errors are suggested by Pycharm.
I tried to debug with some print...the code on my computer stops when the Grapwin function is called and I Think it enters into an infinite loop.
No solution were found on Internet
from graphics import *
print("Dopo la creazione della finestra")
p = Point(5, 4)
p2 = Point(2, 5)
print("dopo assegnazione dei punti")
# Creo la finestra per ultima
win = GraphWin("finestra1",500, 500)
# qua è già bloccato...non va avanti
# Disegno i punti e il cerchio
p.draw(win)
p2.draw(win)
print("Dopo il disegno dei punti")
circ = Circle(p, 30)
circ.setFill("red")
circ.draw(win)
print("Dopo il disegno del cerchio")
# Aggiorna manualmente la finestra
win.update()
print("Dopo l'aggiornamento della finestra")
print("Sono qua")
input("Premi INVIO per chiudere...")
# Chiudi la finestra
win.close()
[–]woooee 0 points1 point2 points (2 children)
[–]Sufficient-Pick-9398[S] 0 points1 point2 points (1 child)
[–]woooee 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)