diff options
| author | Julian Andres Klode <jak@debian.org> | 2015-06-10 15:34:56 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2015-06-10 15:34:56 +0200 |
| commit | b263b8d1a6a84bd34290a1ae52d3c1ee33124d1b (patch) | |
| tree | d293502e5eea862eb856c75e94523f3b58bb9b3d /doc/examples | |
| parent | 4f34ca7de1defc09b119565a35b71e4cca919346 (diff) | |
| download | python-apt-b263b8d1a6a84bd34290a1ae52d3c1ee33124d1b.tar.gz | |
Remove apt.progress.gtk2
Diffstat (limited to 'doc/examples')
| -rwxr-xr-x | doc/examples/gui-inst.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/doc/examples/gui-inst.py b/doc/examples/gui-inst.py deleted file mode 100755 index 654f3794..00000000 --- a/doc/examples/gui-inst.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python -# example how to install in a custom terminal widget -# see also gnome bug: #169201 -import pygtk -pygtk.require('2.0') -import gtk - -import apt.progress.gtk2 - - -if __name__ == "__main__": - - win = gtk.Window() - progress = apt.progress.gtk2.GtkAptProgress() - win.set_title("GtkAptProgress Demo") - win.add(progress) - progress.show() - win.show() - - cache = apt.cache.Cache(progress.open) - if cache["2vcard"].is_installed: - cache["2vcard"].mark_delete() - else: - cache["2vcard"].mark_install() - progress.show_terminal(expanded=True) - cache.commit(progress.fetch, progress.install) - gtk.main() |
