summaryrefslogtreecommitdiff
path: root/misc.py
diff options
context:
space:
mode:
authorjerous <jerous@gmail.com>2008-05-27 01:47:51 +0200
committerjerous <jerous@gmail.com>2008-05-27 01:47:51 +0200
commit14c5bc38ce1c7103567e748eda040d3c04fe2fb9 (patch)
tree3439776174b9e349acb2da914cd3c24d864ea465 /misc.py
parent136f7cfacec2541bda415b88f9f0de5fbd840ea0 (diff)
caching of library, playlist and current song
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/misc.py b/misc.py
new file mode 100644
index 0000000..689c664
--- /dev/null
+++ b/misc.py
@@ -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)