Skip to content

Commit

Permalink
added button for tagging an event
Browse files Browse the repository at this point in the history
  • Loading branch information
niksirbi committed Apr 3, 2023
1 parent 86199d3 commit 5d44bbb
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions wazp/pages/03_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
# Initialize the events status alert
init_events_status: dict = {"message": "No events defined", "color": "light"}

disabled_button_style = {
"n_clicks": 0,
"outline": False,
"color": "dark",
"disabled": True,
"class_name": "w-100",
}

###############################
# Table of events #
###############################
Expand Down Expand Up @@ -69,6 +77,12 @@
value=0,
)

tag_event_button = dbc.Button(
"Tag event",
id="tag-event-button",
**disabled_button_style,
)

# events status alert
events_status_alert = dbc.Alert(
init_events_status["message"],
Expand All @@ -89,16 +103,17 @@
[
dbc.Row(
[
dbc.Col(dcc.Markdown("Select video"), width=3),
dbc.Col(events_video_select, width=9),
dbc.Col(dcc.Markdown("Select video"), width=2),
dbc.Col(events_video_select, width=10),
],
),
dbc.Row(
[
dbc.Col(dcc.Markdown("Tag event for"), width=3),
dbc.Col(dcc.Markdown("Select event"), width=2),
dbc.Col(event_dropdown, width=3),
dbc.Col(dcc.Markdown("at frame index"), width=3),
dbc.Col(dcc.Loading(frame_index_input), width=3),
dbc.Col(dcc.Markdown("at frame"), width=2),
dbc.Col(dcc.Loading(frame_index_input), width=2),
dbc.Col(tag_event_button, width=3),
],
),
],
Expand Down

0 comments on commit 5d44bbb

Please sign in to comment.