
Pmw.TimeCounter() - counter for display and input of time
A time counter is similar to a regular Pmw.Counter except that the user may increment and decrement the hours, minutes and seconds individually.
invoke() is called. The default is None.
getvalue() method.
class Demo:
    def __init__(self, parent):
        self._time = Pmw.TimeCounter(parent,
                labelpos = 'w',
                label_text = 'HH:MM:SS',
                min = '00:00:00',
                max = '23:59:59')
        self._time.pack(padx=10, pady=5)
        button = tkinter.Button(parent, text = 'Show', command = self.show)
        button.pack()
    def show(self):
        stringVal = self._time.getstring()
        intVal =  self._time.getint()
        print((stringVal + '  (' + str(intVal) + ')'))
     
    
    Pmw 2.0.0 -
    29 Mar 2014
     - Home
    
Manual page last reviewed: 25 May 2002