Python_2  1.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
digitalClock.digitalClock Class Reference

Displays in a label the current time. More...

Public Member Functions

def __init__ (self, clock, secs=0, ent=None, time='')
 Constructor. More...
 
def tick (self)
 Updates the clock display. More...
 
def pause (self)
 Pauses the regressive chrono. More...
 
def thirty (self)
 Increments chrono time by thirty seconds. More...
 
def tickDown (self)
 Starts a regessive chronograph by counting time backwards, from the number of seconds set, to zero. More...
 

Public Attributes

 nsecs
 Initial number of second for the regressive chrono. More...
 
 time1
 Not used. More...
 
 clock
 Label for displaying the clock. More...
 
 ent
 Entry for displaying the regressive chrono. More...
 
 running
 Chrono state: running of not running. More...
 

Private Member Functions

def _tickDown (self)
 Manages the process of counting time backwards. More...
 

Private Attributes

 _pause
 Chrono paused state: on of off. More...
 

Detailed Description

Displays in a label the current time.

Constructor & Destructor Documentation

◆ __init__()

def digitalClock.digitalClock.__init__ (   self,
  clock,
  secs = 0,
  ent = None,
  time = '' 
)

Constructor.

Parameters
clocka label to display the time.
secsnumber of seconds for time regressive counting.
ententry widget for counting down.
timestring for initializing the time. Just leave the default.

Member Function Documentation

◆ _tickDown()

def digitalClock.digitalClock._tickDown (   self)
private

◆ pause()

def digitalClock.digitalClock.pause (   self)

Pauses the regressive chrono.

References digitalClock.digitalClock._pause.

◆ thirty()

def digitalClock.digitalClock.thirty (   self)

Increments chrono time by thirty seconds.

References digitalClock.digitalClock.ent, and digitalClock.digitalClock.running.

◆ tick()

def digitalClock.digitalClock.tick (   self)

◆ tickDown()

def digitalClock.digitalClock.tickDown (   self)

Starts a regessive chronograph by counting time backwards, from the number of seconds set, to zero.

References digitalClock.digitalClock._tickDown(), digitalClock.digitalClock.ent, digitalClock.digitalClock.nsecs, and digitalClock.digitalClock.running.

Member Data Documentation

◆ _pause

digitalClock.digitalClock._pause
private

Chrono paused state: on of off.

Referenced by digitalClock.digitalClock._tickDown(), and digitalClock.digitalClock.pause().

◆ clock

digitalClock.digitalClock.clock

Label for displaying the clock.

Referenced by digitalClock.digitalClock._tickDown(), and digitalClock.digitalClock.tick().

◆ ent

digitalClock.digitalClock.ent

◆ nsecs

digitalClock.digitalClock.nsecs

Initial number of second for the regressive chrono.

Referenced by digitalClock.digitalClock._tickDown(), and digitalClock.digitalClock.tickDown().

◆ running

digitalClock.digitalClock.running

◆ time1

digitalClock.digitalClock.time1

Not used.

Referenced by digitalClock.digitalClock.tick().


The documentation for this class was generated from the following file: