Skip to content

Python 3 and SDL BCD (binary-coded decimal) Clock

Notifications You must be signed in to change notification settings

mhoush/bcdclock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Python 3 BCD (binary-coded decimal) Clock

This is a BCD clock using Python 3 and the Simple DirectMedia Layer (SDL) python bindings.

It wasn't created for any specific purpose, just an exercise in learning some SDL usage with Python 3.

BCD Clock Image

It will display the current time in either 24- or 12-hour mode and local time or GMT. Both BCD background panels and the decimal time are displayed. Any TTF or OTF fonts found in the 'fonts' folder will be used (some free examples from dafont.com are included). It supports the following key/button inputs:

Key Result
Mouse Button Prints decimal time to the console
Space Changes panel color (random)
h Toggles between 24- and 12-hour mode
l Toggles between local timezone and GMT
t Cycles through available fonts
f Toggles between fullscreen and windowed mode

About

Python 3 and SDL BCD (binary-coded decimal) Clock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages