Create code editor and run code with subprocess package

This commit is contained in:
BuffTechTalk
2024-09-06 22:22:45 -05:00
parent f510856c42
commit 23fd3ab74e
38 changed files with 406 additions and 0 deletions

35
app.py Normal file
View File

@@ -0,0 +1,35 @@
import streamlit as st
import webpages as pg
from webpages.navigation import navigation_bar as nv
page_label = nv()
# block for main pages
if page_label == "Homepage":
pg.home()
elif page_label == "BuffTeks Project":
pg.project()
elif page_label == "About Classroom":
pg.classroom()
elif page_label == "BuffTeks Event":
pg.event()
elif page_label == "Join Us":
pg.join_us()
# block of PythonX lessons
elif page_label == "About PythonX":
pg.pythonx_homepage()
elif page_label == "Lesson1":
pg.pythonx_lesson1()
elif page_label == "Lesson2":
pg.pythonx_lesson2()
# block for testing page
elif page_label == "Testing":
pg.testing()
elif page_label == "Reference":
pg.reference()