diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-01-09 21:51:34 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-01-09 21:51:34 +0100 |
| commit | db05cdcf94ca8e746eb4e89cd81725b607f2ccbf (patch) | |
| tree | 7c2ec4be1583ea19a6a618baa3cde4713b709ada /apt/gtk/widgets.py | |
| parent | 5b0beca05b84919581e44af83824c47d7a49f02b (diff) | |
| download | python-apt-db05cdcf94ca8e746eb4e89cd81725b607f2ccbf.tar.gz | |
* apt/gtk/widgets: Reformat docstrings a bit, for sphinx
Sphinx autodoc requires reStructuredText in docstrings, we format the
list of signals with light markup.
Diffstat (limited to 'apt/gtk/widgets.py')
| -rw-r--r-- | apt/gtk/widgets.py | 59 |
1 files changed, 18 insertions, 41 deletions
diff --git a/apt/gtk/widgets.py b/apt/gtk/widgets.py index 0becf994..34cc2759 100644 --- a/apt/gtk/widgets.py +++ b/apt/gtk/widgets.py @@ -54,9 +54,9 @@ class GOpProgress(gobject.GObject, apt.progress.OpProgress): Signals: - status-changed(str: operation, int: percent) - status-started() - Not Implemented yet - status-finished() + * status-changed(str: operation, int: percent) + * status-started() - Not Implemented yet + * status-finished() """ @@ -85,12 +85,12 @@ class GInstallProgress(gobject.GObject, apt.progress.InstallProgress): Signals: - status-changed(str: status, int: percent) - status-started() - status-finished() - status-timeout() - status-error() - status-conffile() + * status-changed(str: status, int: percent) + * status-started() + * status-finished() + * status-timeout() + * status-error() + * status-conffile() """ # Seconds until a maintainer script will be regarded as hanging @@ -184,12 +184,12 @@ class GDpkgInstallProgress(apt.progress.DpkgInstallProgress, GInstallProgress): Signals: - status-changed(str: status, int: percent) - status-started() - Not Implemented yet - status-finished() - status-timeout() - When the maintainer script hangs - status-error() - When an error happens - status-conffile() - On Conffile + * status-changed(str: status, int: percent) + * status-started() - Not Implemented yet + * status-finished() + * status-timeout() - When the maintainer script hangs + * status-error() - When an error happens + * status-conffile() - On Conffile """ def run(self, debfile): @@ -210,9 +210,9 @@ class GFetchProgress(gobject.GObject, apt.progress.FetchProgress): Signals: - status-changed(str: description, int: percent) - status-started() - status-finished() + * status-changed(str: description, int: percent) + * status-started() + * status-finished() """ __gsignals__ = {"status-changed": mksig((str, int)), @@ -260,29 +260,6 @@ class GtkAptProgress(gtk.VBox): This widget provides a progress bar, a terminal and a status bar for showing the progress of package manipulation tasks. - - A simple example code snippet to install/remove a package: - - import pygtk - pygtk.require('2.0') - import gtk - - import apt.widgets - - win = gtk.Window() - progress = apt.widgets.GtkAptProgress() - win.set_title("GtkAptProgress Demo") - win.add(progress) - progress.show() - win.show() - - cache = apt.cache.Cache(progress.open)) - cache["xterm"].markDelete() - progress.show_terminal(expanded=True) - cache.commit(progress.fetch), - progress.install) - - gtk.main() """ def __init__(self): |
