File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1010import shutil
1111import random
1212import time
13+ from decimal import Decimal
1314
1415class MixtapeApp :
1516 def __init__ (self , root ):
@@ -335,7 +336,8 @@ def load_library_thread(self):
335336 "path" : filepath ,
336337 "name" : file ,
337338 "duration" : duration ,
338- "folder" : root_dir # Store full path for reference
339+ "folder" : root_dir , # Store full path for reference
340+ "is_silence" : False
339341 }
340342 self .library .append (song_info )
341343 all_songs .append (song_info )
@@ -687,6 +689,9 @@ def update_usage(self):
687689 else :
688690 progress_bar ["style" ] = "Red.Horizontal.TProgressbar"
689691
692+ self .current_usage ["A" ] = round (self .current_usage ["A" ], 3 )
693+ self .current_usage ["B" ] = round (self .current_usage ["B" ], 3 )
694+
690695 formatted_time_a = self .format_time (self .current_usage ["A" ])
691696 formatted_time_b = self .format_time (self .current_usage ["B" ])
692697 side_a_max = self .format_time (self .tape_length )
You can’t perform that action at this time.
0 commit comments