Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Azure
GitHub Repository: Azure/Azure-Sentinel-Notebooks
Path: blob/master/src/SentinelUtilities/SentinelAnomalyLookup/anomaly_lookup_view_helper.py
3255 views
1
# -------------------------------------------------------------------------
2
# Copyright (c) Microsoft Corporation. All rights reserved.
3
# Licensed under the MIT License. See License.txt in the project root for
4
# license information.
5
# --------------------------------------------------------------------------
6
"""
7
Anomaly Lookup View Helper:
8
This module provides helper methods for UI components.
9
"""
10
11
from ipywidgets import Layout, ButtonStyle, IntProgress
12
13
class AnomalyLookupViewHelper():
14
""" UI Helper class for Anomaly lookup """
15
16
@staticmethod
17
def define_int_progress_bar():
18
""" define progress bar """
19
# pylint: disable=line-too-long
20
return IntProgress(value=0, min=0, max=10, step=1, description='Loading:', bar_style='success', orientation='horizontal', position='top')
21
22
@staticmethod
23
def define_button_style():
24
""" define button style """
25
return ButtonStyle(button_color='#FFF', font_color='blue')
26
27
@staticmethod
28
def define_button_layout():
29
""" define button layout """
30
return Layout(width='auto', height='27px', border='2px solid black')
31
32