Update Manager API: Gtk.GtkProgress Frontend module

Gtk progress helpers

class UpdateManager.Frontend.Gtk.GtkProgress.GtkCacheProgress(host_window, progressbar, status, parent, ui)

Gtk UpdateManager.Backend.CacheProgressHandler implementation.

cache_begin()

Begin handler

cache_finished()

Finished handler

cache_operation(operation)
cache_update(progress)
class UpdateManager.Frontend.Gtk.GtkProgress.GtkListProgress(host_window, progressbar, summary, status, expander, cancel_button, treeview, vb_details, scrolled, parent)

Gtk list progress handler implementation

LIST_COL = <UpdateManager.Util.enum.Enum object at 0xaa4426c>
MODE = <UpdateManager.Util.enum.Enum object at 0xaa44bcc>
get_terminal_fork_func()

Returns the terminal’s fork function

class UpdateManager.Frontend.Gtk.GtkProgress.BackendProgressHandlerObject

Helper class that transfers CommitProgressHandler calls to glib signals and emits them

answer_removal_or_installation(answer)

Method for answering a previous emission of the requires_removal_or_installation event.

Parameters:answer – Answer (bool)

New in version 0.200.0~exp1.

download_aborted()

UpdateManager.Backend.CommitProgressHandler.download_aborted() implementation.

download_begin(download_size, package_count, download_count)

UpdateManager.Backend.CommitProgressHandler.download_begin() implementation.

download_failed(failure_message)

UpdateManager.Backend.CommitProgressHandler.download_failed() implementation.

download_finished()

UpdateManager.Backend.CommitProgressHandler.download_finished() implementation.

download_item_begin(uri, item_size, downloaded_size)

UpdateManager.Backend.CommitProgressHandler.download_item_begin() implementation.

download_item_finished(uri)

UpdateManager.Backend.CommitProgressHandler.download_item_finished() implementation.

download_item_update(uri, item_size, downloaded_size)

UpdateManager.Backend.CommitProgressHandler.download_item_update() implementation.

download_update(download_speed, eta_seconds, percent)

UpdateManager.Backend.CommitProgressHandler.download_update() implementation.

emit(*args)

Emits signal in main thread, using gobject.idle_add.

Parameters:args – Arguments passed to gobject.Gobject.emit
install_begin()

UpdateManager.Backend.CommitProgressHandler.install_begin() implementation.

install_failed(error_message)

UpdateManager.Backend.CommitProgressHandler.install_failed() implementation.

install_finished()

UpdateManager.Backend.CommitProgressHandler.install_finished() implementation.

install_update(package_name, percent, status_message)

UpdateManager.Backend.CommitProgressHandler.install_update() implementation.

list_aborted()

List download aborted handler

list_begin()

List download begin handler

list_failed(failure_message)

List download failed handler

list_finished()

List download finished handler

list_item_begin(item_uri, item_size, item_partial_size)

List item begin handler

Parameters:
  • item_uri – Item URI
  • item_size – Item size in bytes
  • item_partial_size – Number of bytes already downloaded
list_item_finished(item_uri)

List item finished handler

Parameters:item_uri – Item URI
list_item_update(item_uri, item_size, item_partial_size)

List item update handler

Parameters:
  • item_uri – Item URI
  • item_size – Item size in bytes
  • item_partial_size – Number of bytes already downloaded
list_update(download_speed, eta_seconds, percent_done)

List status update handler

Parameters:
  • download_speed – Current download speed
  • eta_seconds – Current ETA
  • percent_done – Current percent done
preparation_begin()

UpdateManager.Backend.CommitProgressHandler.preparation_begins() implementation.

New in version 0.200.0~exp1.

requires_removal_or_installation(removals, installs)

UpdateManager.Backend.CommitProgressHandler.requires_removal_or_installation() implementation.

This method uses a threading.Event object internally and blocks until the event is set. This is done by the answer_removal_or_installation() method.

New in version 0.200.0~exp1..

Previous topic

Update Manager API: Gtk.ChangelogViewer Frontend module

Next topic

Update Manager API: Gtk.ui Frontend module

This Page