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/source/examples | |
| parent | 4f34ca7de1defc09b119565a35b71e4cca919346 (diff) | |
| download | python-apt-b263b8d1a6a84bd34290a1ae52d3c1ee33124d1b.tar.gz | |
Remove apt.progress.gtk2
Diffstat (limited to 'doc/source/examples')
| -rw-r--r-- | doc/source/examples/apt-gtk.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/doc/source/examples/apt-gtk.py b/doc/source/examples/apt-gtk.py deleted file mode 100644 index ad46454e..00000000 --- a/doc/source/examples/apt-gtk.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/python -"""Example for gtk widgets""" -import pygtk -pygtk.require("2.0") -import gtk - -import apt.progress.gtk2 - - -def main(): - """Main function.""" - win = gtk.Window() - win.connect("destroy", gtk.main_quit) - 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["xterm"].is_installed: - cache["xterm"].mark_delete() - else: - cache["xterm"].mark_install() - progress.show_terminal(expanded=True) - cache.commit(progress.fetch, progress.install) - gtk.main() - -if __name__ == "__main__": - main() |
