![]() |
Python_2
1.0
|
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... | |
Displays in a label the current time.
def digitalClock.digitalClock.__init__ | ( | self, | |
clock, | |||
secs = 0 , |
|||
ent = None , |
|||
time = '' |
|||
) |
Constructor.
clock | a label to display the time. |
secs | number of seconds for time regressive counting. |
ent | entry widget for counting down. |
time | string for initializing the time. Just leave the default. |
|
private |
Manages the process of counting time backwards.
References digitalClock.digitalClock._pause, digitalClock.digitalClock._tickDown(), digitalClock.digitalClock.clock, digitalClock.digitalClock.ent, digitalClock.digitalClock.nsecs, and digitalClock.digitalClock.running.
Referenced by digitalClock.digitalClock._tickDown(), and digitalClock.digitalClock.tickDown().
def digitalClock.digitalClock.pause | ( | self | ) |
Pauses the regressive chrono.
References digitalClock.digitalClock._pause.
def digitalClock.digitalClock.thirty | ( | self | ) |
Increments chrono time by thirty seconds.
References digitalClock.digitalClock.ent, and digitalClock.digitalClock.running.
def digitalClock.digitalClock.tick | ( | self | ) |
Updates the clock display.
References digitalClock.digitalClock.clock, digitalClock.digitalClock.tick(), and digitalClock.digitalClock.time1.
Referenced by digitalClock.digitalClock.tick().
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.
|
private |
Chrono paused state: on of off.
Referenced by digitalClock.digitalClock._tickDown(), and digitalClock.digitalClock.pause().
digitalClock.digitalClock.clock |
Label for displaying the clock.
Referenced by digitalClock.digitalClock._tickDown(), and digitalClock.digitalClock.tick().
digitalClock.digitalClock.ent |
Entry for displaying the regressive chrono.
Referenced by digitalClock.digitalClock._tickDown(), digitalClock.digitalClock.thirty(), and digitalClock.digitalClock.tickDown().
digitalClock.digitalClock.nsecs |
Initial number of second for the regressive chrono.
Referenced by digitalClock.digitalClock._tickDown(), and digitalClock.digitalClock.tickDown().
digitalClock.digitalClock.running |
Chrono state: running of not running.
Referenced by digitalClock.digitalClock._tickDown(), digitalClock.digitalClock.thirty(), and digitalClock.digitalClock.tickDown().
digitalClock.digitalClock.time1 |
Not used.
Referenced by digitalClock.digitalClock.tick().