示例#1
0
 def view_info(self):
     if isinstance(self.selected_objects[0], Album):
         album = self.selected_objects[0]
         dialog = AlbumInfoDialog(album, self)
     else:
         file = self.tagger.get_files_from_objects(self.selected_objects)[0]
         dialog = FileInfoDialog(file, self)
     dialog.exec_()
示例#2
0
 def view_info(self):
     if isinstance(self.selected_objects[0], Album):
         album = self.selected_objects[0]
         dialog = AlbumInfoDialog(album, self)
     else:
         file = self.tagger.get_files_from_objects(self.selected_objects)[0]
         dialog = FileInfoDialog(file, self)
     dialog.exec_()
示例#3
0
 def view_info(self, default_tab=0):
     if isinstance(self.selected_objects[0], Album):
         album = self.selected_objects[0]
         dialog = AlbumInfoDialog(album, self)
     elif isinstance(self.selected_objects[0], Cluster):
         cluster = self.selected_objects[0]
         dialog = ClusterInfoDialog(cluster, self)
     else:
         file = self.tagger.get_files_from_objects(self.selected_objects)[0]
         dialog = FileInfoDialog(file, self)
     dialog.ui.tabWidget.setCurrentIndex(default_tab)
     dialog.exec_()
示例#4
0
 def view_info(self, default_tab=0):
     if isinstance(self.selected_objects[0], Album):
         album = self.selected_objects[0]
         dialog = AlbumInfoDialog(album, self)
     elif isinstance(self.selected_objects[0], Cluster):
         cluster = self.selected_objects[0]
         dialog = ClusterInfoDialog(cluster, self)
     else:
         file = self.tagger.get_files_from_objects(self.selected_objects)[0]
         dialog = FileInfoDialog(file, self)
     dialog.ui.tabWidget.setCurrentIndex(default_tab)
     dialog.exec_()