-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (27 loc) · 1017 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
# Imports
from taipy.gui import Gui, Markdown
from taipy import Core
# All pages
from pages.insights import insights_page
from pages.dataset import dataset_page
from pages.pie import pie_page
from pages.top_countries_in_continent import top_countries_in_continent
from pages.country_overview import country_overview_page
from pages.compare_countries import compare_countries_page
from pages.total_population import total_population_page
# Configuring Routes
ROUTES = {
'insights': insights_page,
'country_overview': country_overview_page,
'top_countries_in_continent': top_countries_in_continent,
'pie_charts': pie_page,
'compare_countries': compare_countries_page,
'total_population': total_population_page,
'dataset': dataset_page,
}
# Running Application
if __name__ == '__main__':
Core().run()
app = Gui()
app.add_pages(ROUTES)
app.run(title="World Population Exploration!", watermark="Explore World Data!", favicon="https://emojifavicon.dev/favicons/1f30e.png")