aptdaemon.gtk3widgets — The gtk3widgets module

This module provides widgets to use aptdaemon in a GTK application.

class aptdaemon.gtk3widgets.AptConfigFileConflictDialog(from_path, to_path, parent=None)

Dialog to resolve conflicts between local and shipped configuration files.

class aptdaemon.gtk3widgets.AptCancelButton(transaction=None)

Provides a Gtk.Button which allows to cancel a running aptdaemon transaction

set_transaction(transaction)

Connect the status label to the given aptdaemon transaction

class aptdaemon.gtk3widgets.AptConfirmDialog(trans, cache=None, parent=None)

Dialog to confirm the changes that would be required by a transaction.

map_package(pkg)

Map a package to a different object type, e.g. applications and return a list of those.

By default return the package itself inside a list.

Override this method if you don’t want to store package names in the treeview.

render_package_desc(column, cell, model, iter, data)

Data func for the Gtk.CellRendererText which shows the package.

Override this method if you want to show more information about a package or map it to applications.

render_package_icon(column, cell, model, iter, data)

Data func for the Gtk.CellRendererPixbuf which shows the package.

Override this method if you want to show custom icons for a package or map it to applications.

class aptdaemon.gtk3widgets.AptProgressDialog(transaction=None, parent=None, terminal=True, debconf=True)

Complete progress dialog for long taking aptdaemon transactions, which features a progress bar, cancel button, status icon and label

run(*args, **kwargs)

Run the transaction and show the progress in the dialog.

Keyword arguments: attach – do not start the transaction but instead only monitor

an already running one
close_on_finished – if the dialog should be closed when the
transaction is complete

show_error – show a dialog with the error message

set_transaction(transaction)

Connect the dialog to the given aptdaemon transaction

class aptdaemon.gtk3widgets.AptStatusIcon(transaction=None, size=<enum GTK_ICON_SIZE_DIALOG of type GtkIconSize>)

Provides a Gtk.Image which shows an icon representing the status of a aptdaemon transaction

set_icon_size(size)

Set the icon size to gtk stock icon size value

set_transaction(transaction)

Connect to the given transaction

class aptdaemon.gtk3widgets.AptRoleIcon(transaction=None, size=<enum GTK_ICON_SIZE_DIALOG of type GtkIconSize>)

Provides a Gtk.Image which shows an icon representing the role of an aptdaemon transaction

class aptdaemon.gtk3widgets.AptStatusAnimation(transaction=None, size=<enum GTK_ICON_SIZE_DIALOG of type GtkIconSize>)

Provides a Gtk.Image which shows an animation representing the transaction status

set_animation(name, fallback=None, size=None)

Show and start the animation of the given name and size

start_animation()

Start the animation

stop_animation()

Stop the animation

class aptdaemon.gtk3widgets.AptRoleLabel(transaction=None)

Status label for the running aptdaemon transaction

set_transaction(transaction)

Connect the status label to the given aptdaemon transaction

class aptdaemon.gtk3widgets.AptStatusLabel(transaction=None)

Status label for the running aptdaemon transaction

set_transaction(transaction)

Connect the status label to the given aptdaemon transaction

class aptdaemon.gtk3widgets.AptMediumRequiredDialog(medium, drive, parent=None)

Dialog to ask for medium change.

class aptdaemon.gtk3widgets.AptMessageDialog(enum, details=None, parent=None)

Dialog for aptdaemon messages with details in an expandable text view

class aptdaemon.gtk3widgets.AptErrorDialog(error=None, parent=None)

Dialog for aptdaemon errors with details in an expandable text view

class aptdaemon.gtk3widgets.AptProgressBar(transaction=None)

Provides a Gtk.Progress which represents the progress of an aptdaemon transactions

set_transaction(transaction)

Connect the progress bar to the given aptdaemon transaction

class aptdaemon.gtk3widgets.DiffView

Shows the difference between two files.

show_diff(from_path, to_path)

Show the difference between two files.

Previous topic

aptdaemon.enums — The enums module

Next topic

The D-Bus API of the aptdaemon

This Page