#!/usr/bin/env python try: import pygtk pygtk.require('2.0') except: pass try: import gtk pygtk_version = gtk.pygtk_version if ((pygtk_version[0] == 2) or ((pygtk_version[0] == 1) and (pygtk_version[1] >= 99) and (pygtk_version[2] >= 15))): print "yes" else: print "no" except: print "no"