help=self.__doc__, plugin=plugin)
def _run(self, hooke, inqueue, outqueue, params):
- outqueue.put(params['playlist']._index)
+ outqueue.put(params['playlist'].index())
class GetCommand (Command):
"""Return a :class:`hooke.playlist.Playlist`.
def _run(self, hooke, inqueue, outqueue, params):
params['playlist'].pop(params['index'])
- params['playlist'].jump(params._index)
+ params['playlist'].jump(params.index())
class FilterCommand (Command):
"""Create a subset playlist via a selection function.
help=self.__doc__, plugin=plugin)
def _run(self, hooke, inqueue, outqueue, params):
- outqueue.put(hooke.playlists._index)
+ outqueue.put(hooke.playlists.index())
class PlaylistListCommand (Command):
"""Get the playlists in `hooke.playlists`.
def _playlist_status(self, playlist):
if len(playlist) > 0:
- return '%s (%s/%s)' % (playlist.name, playlist._index + 1,
+ return '%s (%s/%s)' % (playlist.name, playlist.index() + 1,
len(playlist))
return 'The playlist %s does not contain any valid force curve data.' \
% self.name
self.Bind(wx.EVT_TREE_SEL_CHANGED, self._on_select)
def update_playlist(self, playlist):
- """Absorb changed `._index`, etc.
+ """Absorb changed `.index()`, etc.
"""
self._playlists[playlist.name] = playlist
def _playlist_status(self, playlist):
fields = [
playlist.name,
- '(%d/%d)' % (playlist._index, len(playlist)),
+ '(%d/%d)' % (playlist.index(), len(playlist)),
]
curve = playlist.current()
if curve != None: