Skip to content

sajjadnasiri/Analog-Clock-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Analog Clock with python


analog clock with python


With this script, you will be able to create a clock for yourself. You can try different clock face images. Of course, note that for better quality, use format ".png", and remove the extra background.

Requirements:

  • python 3.8
  • Matplotlib pip install matplotlib
  • Numpy pip install numpy

To Run:

  • Command Terminal (Win/Lin/Mac):
python MyNewClock.py

Attention:

If you use pycharm. you should disable the "Show plots of in tool window". Go to:

File >Settings >Tolls > Python Scientific

and uncheck

  • Show plots of in tool window

then click 'OK', and enjoy it.

If you like making an executable and runnable Clock from anywhere (on UNIX systems), use the following process:

  1. put this #!/usr/bin/env python in the first line of MyNewClock.py
  2. Make the file executable with chmod +x myfile.py
  3. Execute with ./myfile.py.

Added features:

  • face image
  • hand image

License:

Modern Clock with python