Using graphics.py, I am wondering if there is a way to keep the graphics.py canvas/window on top the entire time. When using pycharm, if the input is in pycharm - the graphic gets hidden behind the application. I found a way of doing it in turtle, but cannot seem to incorporate that into graphic.py
Here is the turtle:
rootwindow=turtle.getcanvas().winfo_toplevel()
rootwindow.call('wm','attributes','.','-topmost','1')
Any ideas how to accomplish this in Zelle's?
Here is a simple example, when going to the console in pycharm, the graphic window moves behind pycharm instead of remaining on top
from graphics import *
win = GraphWin("MyWindow", 200, 200)
def cir(radius):
cir = Circle(Point(30,30), radius)
cir.setFill("red")
cir.draw(win)
return
radius=int(input("what size of circle?"))
cir(radius)
win.getMouse()
win.close()