I'm attempting to create a stopwatch-like gui application (wxpython). I have the buttons: start, stop, reset, and a frame that displays 00:00.0 (mm:ss:tt, minutes, seconds, tenths of seconds). However, I'm stumped at trying to get the correct output using integers. I would like this output for example:
...
...
...
TICK = 0
t_format = u"%02d:%02d.%02d" % (min, sec, t_sec)
...t_format(0) -> 0:00.0
...t_format(12) -> 0.01.2
...t_format(321) -> 0:32.1
...
...
...
while (self.stop != True) or (self.reset != True):
t_format(TICK)
TICK += 1
...
...
...