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()
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)
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)