Browse Source

levels to menu

shuvit 5 years ago
parent
commit
c4c266eff0
2 changed files with 46 additions and 7 deletions
  1. 43
    3
      menuV3.py
  2. 3
    4
      music_player.py

+ 43
- 3
menuV3.py
File diff suppressed because it is too large
View File


+ 3
- 4
music_player.py View File

156
     plist = dict['mu_playlist']  
156
     plist = dict['mu_playlist']  
157
     pl_length = len(dict['mu_playlist'])    
157
     pl_length = len(dict['mu_playlist'])    
158
     if pl_length == 0:
158
     if pl_length == 0:
159
-        dict['mu_playlist'] = dict['mu_lib']  
160
-        
159
+        dict['mu_playlist'] = dict['mu_lib']        
161
     #allow controlls while paused or in replay    
160
     #allow controlls while paused or in replay    
162
-    if dict['npause']  == True or dict['playback'] == True:
161
+    if dict['npause']  == 1 or dict['playback'] == True:
163
         if dict['yBut'] == False and dict['last_yBut'] == True:
162
         if dict['yBut'] == False and dict['last_yBut'] == True:
164
             if dict['mu_stopped'] == 1:
163
             if dict['mu_stopped'] == 1:
165
                 play_music()    
164
                 play_music()    
170
         if dict['rBump'] == False and dict['last_rBump'] == True:
169
         if dict['rBump'] == False and dict['last_rBump'] == True:
171
             next_track()                
170
             next_track()                
172
             
171
             
173
-   
172
+    
174
 #main()        
173
 #main()        

Loading…
Cancel
Save