INNER CODE UNIT · Python
show_tab_content
antoniorodr/cronboard · src/cronboard/app.py:179
def show_tab_content(self, index: int) -> None:
"""Shows the content for the tab at the given index.
Args:
index: The index of the tab.
"""
if index == 0:
self.local_table.display = True
if self.servers:
self.servers.display = False
if self.settings_tab:
self.settings_tab.display = False
elif index == 1:
if not self.servers:
self.servers = CronServers()
self.content_container.mount(self.servers)
self.local_table.display = False