-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTODO.txt
More file actions
25 lines (23 loc) · 696 Bytes
/
Copy pathTODO.txt
File metadata and controls
25 lines (23 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
* ask the user if he wants to hear the songs just added.
* convert UI into actions, then a toolbar
* albums!
* various artists albums
* fix hysteresis in search
* notifications
* when playing a new file, show the current song only if the cursor is in the
previous current song (so not to move it when the user is doing something else)
* headless!
* lock/unlock the grid
updateTimer= QTimer ()
updateTimer.timeout.connect (self.addNewSongsToUI)
updateTimer.start (1000)
def addNewSongsToUI ():
# lock
n= scanner.count
# lock
new= scanner.list[:n]
scanner.list= scanner.list[n:]
# unlock
# add new songs
if not scanner.finished:
updateTimer.start (1000)