Exemple #1
0
 def get_bike(self):
     return ValidObject.bike(GetObject.get_child(self.parent, 'Bike'))
Exemple #2
0
 def bike(self):
     if hasattr(self.road, 'bike') and self.road.bike:
         return self.road.bike
     elif hasattr(self.road, 'parent') and self.road.parent and len(
             self.road.parent.children) > 0:
         return ValidObject.bike(self.get_child(self.road.parent, 'Bike'))
Exemple #3
0
 def get_bike(self):
     if not self.bike:
         screen = ValidObject.screen(self.parent)
         self.bike = ValidObject.bike(screen.ids['bike'])
     return self.bike