def _clock(self):
        while True:
            self.time = strftime('%I:%M:%S %p')
            sleep(1.0)

# Create the demo object:
Update the statusbar time once every second.
dataset/ETHPy150Open enthought/traitsui/examples/demo/Advanced/Statusbar_demo.py/TextEditor._clock