summaryrefslogtreecommitdiff
path: root/doc/examples/gui-inst.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-01-12 17:01:34 +0100
committerJulian Andres Klode <jak@debian.org>2009-01-12 17:01:34 +0100
commit2e4443bbd9872f5599c9a8eb93a65d6c34c83ca2 (patch)
tree86e6f869f2f0e59f99df0f49f679dcd7eeba5255 /doc/examples/gui-inst.py
parenteb32fb89da3e3e1ff4a9668aaed6d533f04e9ee7 (diff)
downloadpython-apt-2e4443bbd9872f5599c9a8eb93a65d6c34c83ca2.tar.gz
Cleanup: Comparisons to True/False, ==/!= None, deprecated modules
Diffstat (limited to 'doc/examples/gui-inst.py')
-rwxr-xr-xdoc/examples/gui-inst.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/doc/examples/gui-inst.py b/doc/examples/gui-inst.py
index cb49db3e..8138d922 100755
--- a/doc/examples/gui-inst.py
+++ b/doc/examples/gui-inst.py
@@ -1,20 +1,13 @@
#!/usr/bin/python
# example how to install in a custom terminal widget
# see also gnome bug: #169201
-
-import apt
-import apt_pkg
-import sys, os, fcntl
-import copy
-import string
-import fcntl
-
import pygtk
pygtk.require('2.0')
import gtk
import apt.gtk.widgets
+
if __name__ == "__main__":
win = gtk.Window()