[PyQt] Get Current time with auto update Label

Ganesh Kumar bugcy013 at gmail.com
Thu Jun 7 10:30:27 BST 2012


Hi Guys, I am New to pyqt, I have tried auto update label  value, How
to do this, I Have create my project with tab-widget, I have click the
nexttab the time value will update. I will stay some time in same
page. It's shows the old time,

How to update current time with label please guide me guys.

In [9]: x= datetime.datetime.now()

In [10]: date = x.strftime("%I:%M %p")

In [11]: print date
02:57 PM

How to do with pyqt stuff.

-Ganesh.

Did I learn something today? If not, I wasted it.


More information about the PyQt mailing list