deluge.ui.gtkui.torrentview

The torrent view component that lists all torrents in the session.

class deluge.ui.gtkui.torrentview.TorrentView

Bases: deluge.ui.gtkui.listview.ListView, deluge.component.Component

TorrentView handles the listing of torrents.

add_row(torrent_id, update=True)
Adds a new torrent row to the treeview
get_selected_torrent()
Returns a torrent_id or None. If multiple torrents are selected, it will return the torrent_id of the first one.
get_selected_torrents()
Returns a list of selected torrents or None
get_torrent_status(torrent_id)
Returns data stored in self.status, it may not be complete
get_visible_torrents()
keypress_Delete()
mark_dirty(torrent_id=None)
on_button_press_event(widget, event)
This is a callback for showing the right-click context menu.
on_drag_drop(widget, drag_context, x, y, timestamp)
on_key_press_event(widget, event)
on_selection_changed(treeselection)
This callback is know when the selection has changed.
on_sessionpaused_event()
on_sessionresumed_event()
on_torrentadded_event(torrent_id)
on_torrentqueuechanged_event()
on_torrentremoved_event(torrent_id)
on_torrentstatechanged_event(torrent_id, state)
remove_row(torrent_id)
Removes a row with torrent_id
save_state()
Saves the state of the torrent view.
send_status_request(columns=None)
set_columns_to_update(columns=None)
set_filter(filter_dict)
Sets filters for the torrentview.. see: core.get_torrents_status
shutdown()
Called when GtkUi is exiting
start()
Start the torrentview
stop()
Stops the torrentview
update()
update_view(columns=None)
Update the view. If columns is not None, it will attempt to only update those columns selected.
deluge.ui.gtkui.torrentview.cell_data_progress(column, cell, model, row, data)
Display progress bar with text
deluge.ui.gtkui.torrentview.cell_data_queue(column, cell, model, row, data)
deluge.ui.gtkui.torrentview.cell_data_statusicon(column, cell, model, row, data)
Display text with an icon
deluge.ui.gtkui.torrentview.cell_data_trackericon(column, cell, model, row, data)
deluge.ui.gtkui.torrentview.eta_column_sort(model, iter1, iter2, data)
deluge.ui.gtkui.torrentview.queue_column_sort(model, iter1, iter2, data)
deluge.ui.gtkui.torrentview.queue_peer_seed_sort_function(v1, v2)
deluge.ui.gtkui.torrentview.seed_peer_column_sort(model, iter1, iter2, data)

Previous topic

deluge.ui.gtkui.torrentdetails

Next topic

deluge.ui.web.auth

This Page