Exemplo n.º 1
0
 def on_track_properties(self, *e):
     pl = self.main.get_selected_playlist()
     if not pl.properties_dialog():
         if self.exaile.player.current:
             from xlgui import properties
             dialog = properties.TrackPropertiesDialog(
                 self.main.window, [self.exaile.player.current])
             dialog.hide()
Exemplo n.º 2
0
def _properties_cb(widget, name, parent, context, get_tracks_func,
                   dialog_parent):
    tracks = get_tracks_func(parent, context)
    if tracks:
        dialog = properties.TrackPropertiesDialog(dialog_parent, tracks)
Exemplo n.º 3
0
def _properties_cb(widget, name, parent, context, get_tracks_func):
    tracks = get_tracks_func(parent, context)
    if tracks:
        assert isinstance(parent, panel.Panel)
        properties.TrackPropertiesDialog(parent.parent, tracks)