Skip to content

A part of an assignment from college to programme a set of corresponding traffic lights

Notifications You must be signed in to change notification settings

Kieferrrrr/Python-Traffic-Lights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Traffic Light Simulator

Part of an old college assignment to code a pair of corresponding traffic lights

Description

Traffic light simulator for a college object-oriented programming unit, the brief was to programme a set of traffic lights which alternate every 4 seconds following these events

Cycle Light 1 Light 2
Red Amber Green Red Amber Green
1 On Off Off Off Off On
2 On On Off Off On Off
3 Off Off On On Off Off
4 Off On Off On On Off

As an extra, in my code i added a force toggle button which allows you to force the programme to cycle to the next stage to see the code working

Technical Information

The match/case system i used within this code is only available with Python3.10 and above

The only module which needs installing for this code is "customtkinter"; install this with:

pip install customtkinter

About

A part of an assignment from college to programme a set of corresponding traffic lights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages