[prev in list] [next in list] [prev in thread] [next in thread]
List: python-3000
Subject: Re: [Python-3000] turtle.Screen- how to implement best a Singleton
From: Terry Reedy <tjreedy () udel ! edu>
Date: 2008-08-18 21:48:21
Message-ID: g8cqn3$qsn$1 () ger ! gmane ! org
[Download RAW message or body]
> I, for my part, prefer the latter solution (b). Example: a student,
> having (interactively) produced some design using some turtle t =
> Turtle() decides spontaneously to change backgroundcolor. s = Screen();
> s.bgcolor("pink") should do this for her -
My perhaps naive view is that students should be given name S bound to
the single Screen object and not have direct access to the Screen class
object to ever call it. S.bgcolor should be all that they need to do.
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: http://mail.python.org/mailman/options/python-3000/python-3000%40progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic