-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
57 lines (34 loc) · 935 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Project OGIWS by Alex Arbuckle #
# import <
from dash import html
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output, State
from frontend.menu import menuLayout
from frontend.graph import graphLayout
from backend.resource import application
# >
application.layout = dbc.Container(
fluid = True,
style = dict(backgroundColor = 'rgb(248, 240, 227)'),
children = dbc.Row(
id = 'mainRowId',
children = [
menuLayout(),
graphLayout()
]
)
)
@application.callback(
Output('mainRowId', 'children'),
Input('refreshButtonId', 'n_clicks')
)
def buttonCallback(pClick: int):
''' '''
return [
dbc.Row(justify = 'center', children = menuLayout()),
dbc.Row(justify = 'center', children = graphLayout())
]
# >
# main <
if (__name__ == '__main__'): application.run_server(debug = True)
# >