summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-06-10 15:34:56 +0200
committerJulian Andres Klode <jak@debian.org>2015-06-10 15:34:56 +0200
commitb263b8d1a6a84bd34290a1ae52d3c1ee33124d1b (patch)
treed293502e5eea862eb856c75e94523f3b58bb9b3d /doc/examples
parent4f34ca7de1defc09b119565a35b71e4cca919346 (diff)
downloadpython-apt-b263b8d1a6a84bd34290a1ae52d3c1ee33124d1b.tar.gz
Remove apt.progress.gtk2
Diffstat (limited to 'doc/examples')
-rwxr-xr-xdoc/examples/gui-inst.py27
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()