def main(*argv): try: # Import Psyco if available import psyco psyco.full() except ImportError: print "psyco not available" mainwindow = gtk.Window() mainwindow.connect("delete_event", delete_event) mainwindow.set_default_size(WIDTH, HEIGHT) mainwindow.add(TheWorld) mainwindow.show() TheWorld.create_width = WIDTH TheWorld.create_height = HEIGHT TheWorld.show() TheEden.populate() # choose one TheSpaceTime.timer_id = gobject.idle_add(TheSpaceTime.tick) #TheSpaceTime.start() gtk.gdk.threads_enter() gtk.main() gtk.gdk.threads_leave()