#!/usr/bin/env python try: import gtk, gtk.glade import gobject except: print "You do not have python gtk bindings, or you're missing glade libs" print "To use Lephisto's resedit you must install them" print "http://pygtk.org/" raise SystemExit import space, faction, fleet # Load the factions factions = faction.Factions() factions.loadFactions("../../dat/faction.xml") factions.window() # Load the fleets. fleets = fleet.Fleets() fleets.loadFleets("../../dat/fleet.xml") # Load the universe. universe = space.Space(factions.data(), fleets.data()) universe.loadSystems("../../dat/ssys.xml") universe.loadPlanets("../../dat/planet.xml") universe.window() gtk.main()