codekasten/adstreme/KeywordGenerator/KeywordGenerator.py

28 lines
570 B
Python
Raw Normal View History

2006-04-05 23:27:14 +02:00
#!/usr/bin/env python
class Main:
'run this class to see the keyword generator in action'
import sys
try:
import pygtk
pygtk.require("2.0") #we want to use gtk2
except:
print "\nYou need \"pygtk\" to get this working."
print "In Debian do: apt-get install python2.3-gtk2\n"
sys.exit(1)
try:
import gtk
from gtk import glade
except:
print "\nYou need \"libglade\" to get this working."
print "In Debian do: apt-get install python2.3-glade2\n"
sys.exit(1)
import kg_frontend
kgf = kg_frontend.KeywordGeneratorFrontend(gtk)
gtk.main()