this gui stuff only works with python 2.6