Path: blob/master/src/SentinelUtilities/SentinelAnomalyLookup/anomaly_lookup_view_helper.py
3255 views
# -------------------------------------------------------------------------1# Copyright (c) Microsoft Corporation. All rights reserved.2# Licensed under the MIT License. See License.txt in the project root for3# license information.4# --------------------------------------------------------------------------5"""6Anomaly Lookup View Helper:7This module provides helper methods for UI components.8"""910from ipywidgets import Layout, ButtonStyle, IntProgress1112class AnomalyLookupViewHelper():13""" UI Helper class for Anomaly lookup """1415@staticmethod16def define_int_progress_bar():17""" define progress bar """18# pylint: disable=line-too-long19return IntProgress(value=0, min=0, max=10, step=1, description='Loading:', bar_style='success', orientation='horizontal', position='top')2021@staticmethod22def define_button_style():23""" define button style """24return ButtonStyle(button_color='#FFF', font_color='blue')2526@staticmethod27def define_button_layout():28""" define button layout """29return Layout(width='auto', height='27px', border='2px solid black')303132