self.combo_source = hildon.TouchSelectorEntry(text=True)
self.combo_dest = hildon.TouchSelectorEntry(text=True)
- for i in ConfFile('example.cfg').get_liste_des_gares():
+ for i in ConfFile('/opt/masstransit/masstransit.cfg').get_liste_des_gares():
self.combo_source.append_text(i[0])
self.combo_dest.append_text(i[0])
picker_button_source.set_selector(self.combo_source)
gtk.main_quit()
def on_refreshButton_clicked(self, widget):
- gare_source = LongNameGare(self.combo_source.get_current_text()).get_gare(ConfFile('example.cfg'))
- gare_dest = LongNameGare(self.combo_dest.get_current_text()).get_gare(ConfFile('example.cfg'))
+ conf = ConfFile('/opt/masstransit/masstransit.cfg')
+ gare_source = LongNameGare(self.combo_source.get_current_text()).get_gare(conf)
+ gare_dest = LongNameGare(self.combo_dest.get_current_text()).get_gare(conf)
trajet = Trajet(gare_source , gare_dest)
print trajet
print self.treestore