def main(self): gtk.main() #Gets called when the (x) on the window is clicked to close the window. Note that stopping the program from Eclipse will NOT trigger this function