예제 #1
0
 def songs_convert(self):
     if len(self.select_rows) > 0:
         songs = [ self.items[self.select_rows[index]].get_song() for index in range(0, len(self.select_rows))]
         try:
             AttributesUI(songs).show_window()
         except:    
             pass
예제 #2
0
 def choose_file_and_convert(self):
     filename = WinFile(False).run()
     if filename and common.file_is_supported(filename):
         tags = {"uri": utils.get_uri_from_path(filename)}
         s = Song()
         s.init_from_dict(tags)
         s.set_type("local")
         s.read_from_file()
         AttributesUI([s]).show_window()