diff options
author | jerous <jerous@gmail.com> | 2008-05-27 01:47:51 +0200 |
---|---|---|
committer | jerous <jerous@gmail.com> | 2008-05-27 01:47:51 +0200 |
commit | 14c5bc38ce1c7103567e748eda040d3c04fe2fb9 (patch) | |
tree | 3439776174b9e349acb2da914cd3c24d864ea465 /misc.py | |
parent | 136f7cfacec2541bda415b88f9f0de5fbd840ea0 (diff) |
caching of library, playlist and current song
Diffstat (limited to 'misc.py')
-rw-r--r-- | misc.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +from PyQt4 import QtCore + + +eventLoop=QtCore.QEventLoop() +def doEvents(): + eventLoop.processEvents(QtCore.QEventLoop.AllEvents) + +def sec2min(secs): + min=int(secs/60) + sec=secs%60 + if sec<10:sec='0'+str(sec) + return str(min)+':'+str(sec) |