-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseacoapp.py
52 lines (42 loc) · 1.4 KB
/
seacoapp.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
from flask import Flask
from dash import Dash
from dash import Dash
import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
from leftmenu import Left_menu, ids, menu_logics
from Figure import call_figure, rightMenu
from popup import ExportWindow, Export_window_Callbacks
# class Config:
# #database
# SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:project@localhost/ProjectDB'
# SQLALCHEMY_ECHO = False
# SQLALCHEMY_TRACK_MODIFICATIONS = False
app = Flask(__name__, instance_relative_config=True)
# app.config.from_object(Config)
dash_app = Dash(
server=app,
suppress_callback_exceptions=True,
external_stylesheets=[dbc.themes.SANDSTONE],
url_base_pathname='/')
dash_app.downloadable = False
dash_app.layout = html.Div([
dbc.Container([
ExportWindow,
dbc.Row([
dbc.Col(html.H1('SEA-COAPP'),
align='center', width=3)
], justify='center'),
dbc.Row([
dbc.Col(Left_menu, width=3,), #style={'background-color': 'coral'}),
dbc.Col(rightMenu, width=9,), #style={'background-color': 'red'})
# dbc.Col(tabs, width=True)
])
])
])
dash_app.ids = ids
menu_logics(dash_app)
call_figure(dash_app)
Export_window_Callbacks(dash_app)
if __name__ == '__main__':
app.run(debug=True)