From 1e2370209e7713f21387a2d75f19a0fcf99ebe31 Mon Sep 17 00:00:00 2001 From: colramos-amd Date: Tue, 8 Nov 2022 15:41:41 -0600 Subject: [PATCH] Implement basic loading spinner --- src/omniperf_cli/utils/gui.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/omniperf_cli/utils/gui.py b/src/omniperf_cli/utils/gui.py index cbff21927c..b3ac93dfbd 100644 --- a/src/omniperf_cli/utils/gui.py +++ b/src/omniperf_cli/utils/gui.py @@ -29,6 +29,7 @@ from dash.dash_table import FormatTemplate from dash.dash_table.Format import Format, Scheme, Symbol from dash import html, dash_table from dash.dependencies import Input, Output, State +import dash_bootstrap_components as dbc from dash import dcc import plotly.express as px @@ -319,8 +320,10 @@ def build_layout( app.layout.children = html.Div( children=[ - get_header(runs[path_to_dir].raw_pmc, input_filters, filt_kernel_names), - html.Div(id="container", children=[]), + dbc.Spinner(children=[ + get_header(runs[path_to_dir].raw_pmc, input_filters, filt_kernel_names), + html.Div(id="container", children=[]), + ], fullscreen=True, color="primary", spinner_style={"width": "6rem", "height": "6rem"}) ] )