def select_overview_subtab(self):
"""
Selects the overview sub tab.
"""
# this is what we would normally do:
# tab_manager.current = 'overview'
# but instead we need to simulate the click on the
# navigation bar children or the associated screen button
# would not have the selected color
overview_bnavigation = self.overview_bnavigation
navigation_bar = overview_bnavigation.children[0]
boxlayout = navigation_bar.children[0]
nav_headers = boxlayout.children
# the overview is the first/last button
overview_nav_header = nav_headers[-1]
overview_nav_header.dispatch('on_press')
评论列表
文章目录