This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Bugs
Type: Stage: resolved
Components: Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Mahira
Priority: normal Keywords:

Created on 2017-06-02 11:07 by Mahira, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (1)
msg295005 - (view) Author: Mahira (Mahira) Date: 2017-06-02 11:07
Hai Python Team,

Am very new to programming

Am facing following error in python

Traceback (most recent call last):
  File
"C:/Users/Mahira/AppData/Local/Programs/Python/Python36/Lib/graphics_setup/Shape
Gra Ex.py", line 6, in <module>
    circle.draw("win")
  File
"C:/Users/Mahira/AppData/Local/Programs/Python/Python36/Lib/graphics_setup\graphics.py",
line 482, in draw
    if graphwin.isClosed(): raise GraphicsError("Can't draw to closed
window")
AttributeError: 'str' object has no attribute 'isClosed

My Program is:

from graphics import *
win=GraphWin('Shapes')
center=Point(100,100)
circle=Circle(center,30)
circle.setFill('red')
circle.draw("win")
label=Text(center,"Red Circle")
label.draw(win)
rect=Rectangle(Point(30,30),Point(70,70))
r.draw(win)
line=Line(Point(20,30),Point(180,199))
line.draw(win)
oval=Oval(Point(20,150),Point(180,199))
oval.draw(win)

Kindly help me to solve this issue
History
Date User Action Args
2022-04-11 14:58:47adminsetgithub: 74737
2017-06-02 11:29:36Mahirasetstatus: open -> closed
stage: resolved
2017-06-02 11:07:51Mahiracreate