Python_2  1.0
Classes | Functions | Variables
_08c_clock Namespace Reference

A very simple analog clock. More...

Classes

class  clock
 Class for drawing a simple analog clock. More...
 
class  makeThread
 Class for creating a new thread. More...
 

Functions

def main (argv=None)
 Main program for testing. More...
 

Variables

bool hasPIL = True
 

Detailed Description

A very simple analog clock.

The program transforms world coordinates into screen coordinates and vice versa according to an algorithm found in: "Programming principles in computer graphics" by Leendert Ammeraal.

Lightly based on the code of Anton Vredegoor (anton.nosp@m..vre.nosp@m.degoo.nosp@m.r@gm.nosp@m.ail.c.nosp@m.om)

Installation:

Author
Paulo Roma
Since
01/05/2014
See also
https://code.activestate.com/recipes/578875-analog-clock/?in=user-4189949
http://orion.lcg.ufrj.br/python/figuras/fluminense.png
https://www.timeanddate.com/time/zones/

Function Documentation

◆ main()

def _08c_clock.main (   argv = None)

Main program for testing.

Parameters
argvcommand line arguments
  • h help
  • p place
  • w clock width
  • a clock height
  • i no image background
  • t whether to use a separate thread for running the clock
  • v verbose mode

Usage:

Variable Documentation

◆ hasPIL

bool _08c_clock.hasPIL = True