def _model_changed(self, model):
        """ Handles the 'league' model being initialized.
        """
        if len(model.teams) > 0:
            self.team = model.teams[0]
dataset/ETHPy150Open enthought/traits/examples/tutorials/traits_4.0/extended_trait_change/properties.py/LeagueModelView._model_changed/original