progress
This commit is contained in:
+11
-4
@@ -26,6 +26,8 @@ PAIR_THEO_RET_DISPLAY_DROP_COLUMNS = ["total_pnl"]
|
||||
APP_TITLE = "SPBT Day Analysis"
|
||||
APP_ACCENT_COLOR = "#226c67"
|
||||
APP_HEADER_COLOR = "#184c47"
|
||||
APP_SIDEBAR_WIDTH = 215
|
||||
APP_SIDEBAR_CONTROL_WIDTH = 200
|
||||
|
||||
|
||||
class SpbtDayPanelApp:
|
||||
@@ -43,18 +45,22 @@ class SpbtDayPanelApp:
|
||||
self.directory_input = pn.widgets.TextInput(
|
||||
label="Directory",
|
||||
value=str(self.repo_root / "data"),
|
||||
sizing_mode="stretch_width",
|
||||
width=None,
|
||||
)
|
||||
self.show_all_files = pn.widgets.Checkbox(label="Show all files", value=False)
|
||||
self.file_select = pn.widgets.Select(
|
||||
label="SQLite result file",
|
||||
options={},
|
||||
width=360,
|
||||
sizing_mode="stretch_width",
|
||||
width=None,
|
||||
)
|
||||
self.min_pctg_change_input = pn.widgets.FloatInput(
|
||||
label="Mininal TARGET change (%)",
|
||||
value=0.0,
|
||||
step=1.0,
|
||||
width=220,
|
||||
sizing_mode="stretch_width",
|
||||
width=None,
|
||||
)
|
||||
self.calculate_button = pn.widgets.Button(
|
||||
label="Calculate",
|
||||
@@ -267,7 +273,7 @@ class SpbtDayPanelApp:
|
||||
self.min_pctg_change_input,
|
||||
self.calculate_button,
|
||||
self.status,
|
||||
width=400,
|
||||
width=APP_SIDEBAR_CONTROL_WIDTH,
|
||||
)
|
||||
main = pn.Column(
|
||||
"## Pair TheoRet",
|
||||
@@ -284,10 +290,11 @@ class SpbtDayPanelApp:
|
||||
title=APP_TITLE,
|
||||
sidebar=[controls],
|
||||
main=[main],
|
||||
sidebar_width=430,
|
||||
sidebar_width=APP_SIDEBAR_WIDTH,
|
||||
accent_base_color=APP_ACCENT_COLOR,
|
||||
header_background=APP_HEADER_COLOR,
|
||||
main_layout=None,
|
||||
theme=pn.template.DarkTheme,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user