-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
24 lines (18 loc) · 680 Bytes
/
app.py
File metadata and controls
24 lines (18 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import streamlit as st
from streamlit_option_menu import option_menu
from layout.sorting_algorithms_layout import display_sorting_algorithm_layout
from layout.pathfinding_algorithms_layout import display_pathfinding_layout
def main():
chooser = option_menu(
menu_title=None,
options=["Sorting Algorithms", "Pathfinding Algorithms"],
icons=["bar-chart-fill", "diagram-3-fill"],
default_index=0,
orientation="horizontal",
)
if chooser == "Sorting Algorithms":
display_sorting_algorithm_layout()
elif chooser == "Pathfinding Algorithms":
display_pathfinding_layout()
if __name__ == "__main__":
main()