Exemplo n.º 1
0
 def get_ui_info(self) -> UIInfo:
     return UIInfo(from_station=self.from_station.get(),
                   to_station=self.to_station.get(),
                   travel_class=self.travel_class.get(),
                   way=self.way.get(),
                   discount=self.discount.get(),
                   payment=self.payment.get())
Exemplo n.º 2
0
 def __init__(self, **traits):
     """ Initializes the object.
     """
     super(UI, self).__init__(**traits)
     self.info = UIInfo(ui=self)