[Tutor] Traffic Light

Russel Winder russel at winder.org.uk
Sun Jan 20 13:25:35 CET 2013


On Sat, 2013-01-19 at 12:31 -0800, anthonym wrote:
> Hello All,
> 
> I am new to Python and taking a course now.  One of my exercises is to
> create a traffic light using tkinter.   The exercise also requires that I
> create radio buttons that allow the user to click on the color and the
> corresponding light will come on.

A side-note here rather than a direct contribution to your problem at
hand:  radio buttons are not a good way of implementing traffic lights
if internationalization is a factor. In the UK and other places, there
is a state where both red and yellow are on at the same time.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/tutor/attachments/20130120/6e28f5eb/attachment.pgp>


More information about the Tutor mailing list