
Pmw.TimeCounter() -
If None, a label component is not created. The default is None.
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) + ')'
Home. Pmw 0.8.5 Maintainer gregm@iname.com. 9 Feb 2001