def get_bike(self): return ValidObject.bike(GetObject.get_child(self.parent, 'Bike'))
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'))
def get_bike(self): if not self.bike: screen = ValidObject.screen(self.parent) self.bike = ValidObject.bike(screen.ids['bike']) return self.bike