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: Attribute Error
Type: compile error Stage: resolved
Components: Versions: Python 3.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Mahira
Priority: normal Keywords:

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

Messages (2)
msg295004 - (view) Author: Mahira (Mahira) Date: 2017-06-02 11:06
Hai, I am New to python and I am training with some open source projects now am Practising GUI....
I get the Error Message 
 
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'

And my Program is Following below:
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)
msg295009 - (view) Author: Mahira (Mahira) Date: 2017-06-02 11:29
hey issue Cleared
History
Date User Action Args
2022-04-11 14:58:47adminsetgithub: 74736
2017-06-02 11:29:15Mahirasetstatus: open -> closed

messages: + msg295009
stage: resolved
2017-06-02 11:06:01Mahiracreate