#!/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()