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.
If None, a label component is not created. 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 1.2 -
5 Aug 2003
- Home
Manual page last reviewed: 25 May 2002