def notification_selected_sm_changed(self, model, prop_name, info):
        """If a new state machine is selected, make sure expansion state is stored and tree updated"""
        selected_state_machine_id = self.model.selected_state_machine_id
        if selected_state_machine_id is None:
            return
        self.update()
def notification_selected_sm_changed ( self , model , prop_name , info ) : selected_state_machine_id = self . model . selected_state_machine_id if selected_state_machine_id is None : return self . update ( )
If a new state machine is selected, make sure expansion state is stored and tree updated