Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute Error #74736

Closed
Mahira mannequin opened this issue Jun 2, 2017 · 2 comments
Closed

Attribute Error #74736

Mahira mannequin opened this issue Jun 2, 2017 · 2 comments
Labels
build The build process and cross-build

Comments

@Mahira
Copy link
Mannequin

Mahira mannequin commented Jun 2, 2017

BPO 30551

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2017-06-02.11:29:15.659>
created_at = <Date 2017-06-02.11:06:01.220>
labels = ['build']
title = 'Attribute Error'
updated_at = <Date 2017-06-02.11:29:15.658>
user = 'https://bugs.python.org/Mahira'

bugs.python.org fields:

activity = <Date 2017-06-02.11:29:15.658>
actor = 'Mahira'
assignee = 'none'
closed = True
closed_date = <Date 2017-06-02.11:29:15.659>
closer = 'Mahira'
components = []
creation = <Date 2017-06-02.11:06:01.220>
creator = 'Mahira'
dependencies = []
files = []
hgrepos = []
issue_num = 30551
keywords = []
message_count = 2.0
messages = ['295004', '295009']
nosy_count = 1.0
nosy_names = ['Mahira']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'resolved'
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue30551'
versions = ['Python 3.6']

@Mahira
Copy link
Mannequin Author

Mahira mannequin commented Jun 2, 2017

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)

@Mahira Mahira mannequin added the build The build process and cross-build label Jun 2, 2017
@Mahira
Copy link
Mannequin Author

Mahira mannequin commented Jun 2, 2017

hey issue Cleared

@Mahira Mahira mannequin closed this as completed Jun 2, 2017
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

0 participants