[Fix] Bugy bugz in Planet update. Failing to render shit properly.

This commit is contained in:
Allanis 2013-04-19 18:26:39 +01:00
parent c13b9d64a6
commit 15082ba17d
2 changed files with 17 additions and 0 deletions

View File

@ -263,6 +263,23 @@ class Space:
self.__pwidget("imaPlanet").set_from_file(self.planet_gfx + "space/" +
planet["GFX"]["space"])
# System.
wgt = self.__pwidget("comSystem")
combo = gtk.ListStore(str)
for sysname in self.systems.keys():
node = combo.append([sysname])
cell = gtk.CellRendererText()
if wgt.get_model() == None:
wgt.pack_start(cell, True)
wgt.add_attribute(cell, 'text', 0)
wgt.set_model(combo)
self.__genPlanerTree()
i = 0
for row in combo:
if row[0] == self.planetTree[self.cur_planet]:
wgt.set_active_iter(combo.get_iter(i))
i = i + 1
def __sstore(self):
sys_name = self.__swidget("inpName").get_text()
if sys_name == "":

Binary file not shown.