Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106512
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Import graphics error |
| Date | 2016-04-05 08:23 -0400 |
| Organization | IISS Elusive Unicorn |
| Message-ID | <mailman.66.1459859222.32530.python-list@python.org> (permalink) |
| References | <CAO5nurM_6d+3Tz5-=uo1w_nVygFtuwatjejHvhfkUTD-DhvBoA@mail.gmail.com> <mailman.61.1459851765.32530.python-list@python.org> <5703946f$0$1612$c3e8da3$5496439d@news.astraweb.com> <69b7gb12p62m7o9oabpiuo19ckdkj3v4u7@4ax.com> |
On Tue, 05 Apr 2016 20:33:18 +1000, Steven D'Aprano <steve@pearwood.info>
declaimed the following:
>On Tue, 5 Apr 2016 08:19 pm, Nicolae Morkov wrote:
>
>> # This program creates a graphics window with a rectangle. It provides the
>> 3 # template used with all of the graphical programs used in the book.
>
>What book?
>
Hopefully not "Python Programming: An Introduction to Computer Science"
as the first hit (
http://mcsp.wartburg.edu/zelle/python/graphics/graphics/node1.html ) for
"python graphics library" doesn't match the calls (well, the second hit,
the first hit was a demo program -- which surprised me as Firefox appeared
to launch it!)
>From the above documentation:
-=-=-=-=-
from graphics import *
def main():
win = GraphWin("My Circle", 100, 100)
c = Circle(Point(50,50), 10)
c.draw(win)
win.getMouse() # pause for click in window
win.close()
main()
-=-=-=-=-
Same library name as the OP, but different window creation.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Import graphics error Nicolae Morkov <morkovnicolae@gmail.com> - 2016-04-05 11:19 +0100
Re: Import graphics error Steven D'Aprano <steve@pearwood.info> - 2016-04-05 20:33 +1000
Re: Import graphics error Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-04-05 08:23 -0400
csiph-web