Skip to content
← Back to Community
🕑 Digital Clock 🕑 - A Simple Clock (Inspired)!
Profile icon
CodingElf66

🕑 Digital Clock 🕑 - A Simple Clock (Inspired)!

Intro

Hi, Replit Community! Thanks for all your support (on my tutorials, recently)! Switching gears, I made a simple digital clock 🕑 today, inspired by one that I have! It's made in Pygame (Python), and I hope you enjoy it! Here's a sneak peak at it.

Screenshot 2021-08-08 10.29.04 PM

How I Made It

First, I downloaded a Alarm Clock font from Google Fonts. Then, I uploaded the font onto the repl and imported pygame. I then made a write_text function, and I just wrapped it up with fancy styling.

Closing

Please enjoy this repl! If you have any additional questions, comments, compliments, concerns, or anything that is relevant to this post, please comment below.

Note: All times shown here are in PST Time (Pacific Standard Time).

Voters
Profile icon
UltimatePython
Profile icon
365DaysOfCode
Profile icon
CodingElf66
Comments
hotnewtop
Profile icon
Cag82407

dude, I checked out this repl at 10:30 AM and saw the picture at the top and thought that was the code xD

Profile icon
CodingElf66

If you have a specific time zone, tell me and I'll switch the time zone!

Profile icon
CodingElf66

And the new update of this clock just came out, maybe you would want to look at it!

Profile icon
CodingElf66

All the problems are fixed, don't worry!

Profile icon
manasjos

it showing properly but the timeimg is differet

Profile icon
CodingElf66
Profile icon
manasjos

there a mistake pls check it out

Profile icon
notTussiez
Traceback (most recent call last): File "main.py", line 48, in <module> write_text(time_now, "clock.ttf", (255,0,0), 50, 300, 150) TypeError: write_text() takes 5 positional arguments but 6 were given
Profile icon
CodingElf66

@notTussiez
Sorry, it should be fixed now!

Profile icon
notTussiez

@JeffreyChen13
Looks great!

Profile icon
CodingElf66
Profile icon
UltimatePython

@CodingElf66
Ok good

Profile icon
CodingElf66

@JChen0208
Bruh, cousin. I forgot to tell you, WHY DO YOU HAVE TO COPY MY FIRST AND LAST NAME?