Skip to content

Commit

Permalink
Change tab order
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Nov 4, 2024
1 parent 4d5db0f commit 603d146
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tardis/io/logger/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,17 @@ def _configure_handlers(self, widget_handler):

def _create_and_display_tabs(self):
"""Create and display the logging tabs."""
tab_order = ["ALL", "WARNING/ERROR", "INFO", "DEBUG"]
tab = Tab(
children=[self.log_outputs[key] for key in ["WARNING/ERROR", "INFO", "DEBUG", "ALL"]],
children=[self.log_outputs[key] for key in tab_order],
layout=Layout(
width="100%",
min_height="350px", # Allow space for tab header + content
overflow_y="visible"
)
)

for i, title in enumerate(["WARNING/ERROR", "INFO", "DEBUG", "ALL"]):
for i, title in enumerate(tab_order):
tab.set_title(i, title)

display(tab)
Expand Down

0 comments on commit 603d146

Please sign in to comment.