summaryrefslogtreecommitdiff
path: root/doc/examples/gui-inst.py
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-07-05 22:06:22 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-07-05 22:06:22 +0300
commit622812485150fa7864910ee2f710d5aab2fa9e6d (patch)
treeb3bc4fd72bb80e74ba5a60d8b3d47e610dff012e /doc/examples/gui-inst.py
parent798846ab8337471998b0a4d796d6d409453faa7d (diff)
parentfdd173dd444098ed533cbcd541a7f10f228bc47e (diff)
downloadpython-apt-622812485150fa7864910ee2f710d5aab2fa9e6d.tar.gz
Merge git://anonscm.debian.org/apt/python-apt
Conflicts: debian/changelog python/apt_pkgmodule.cc
Diffstat (limited to 'doc/examples/gui-inst.py')
-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 68f06fc0..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"].isInstalled:
- cache["2vcard"].markDelete()
- else:
- cache["2vcard"].markInstall()
- progress.show_terminal(expanded=True)
- cache.commit(progress.fetch, progress.install)
- gtk.main()