130 + compArray = header.select_many("TimeLineHeaderComponent") 131 + timeline = None 132 + 133 + for tilelineComponent in compArray: 134 + if tilelineComponent.isCurrentItem: 135 + timeline = tilelineComponent 136 + break
Autopilot allows to do this in a much simpler way:
timeline = header.select_single("TimeLineHeaderComponent", isCurrentItem=True)
The same applies to get_current_year() and to selected_month.
« Back to merge proposal
130 + compArray = header. select_ many("TimeLineH eaderComponent" ) nt.isCurrentIte m:
131 + timeline = None
132 +
133 + for tilelineComponent in compArray:
134 + if tilelineCompone
135 + timeline = tilelineComponent
136 + break
Autopilot allows to do this in a much simpler way:
timeline = header. select_ single( "TimeLineHeader Component" , isCurrentItem=True)
The same applies to get_current_year() and to selected_month.