-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.py
More file actions
38 lines (33 loc) · 1 KB
/
profile.py
File metadata and controls
38 lines (33 loc) · 1 KB
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
31
32
33
34
35
36
37
38
import streamlit as st
import datetime
fname = "Abdallah"
lname = "Fekry"
email = "abdallahfekry95@gmail.com"
password = "admin"
date = datetime.datetime(2000,5,25).date()
st.write("---")
col1, col2 = st.columns([1,6])
with col1:
st.image(r"images/boy (1).png")
with col2:
st.write(" \n")
st.subheader(f"{fname} {lname}")
st.write("---")
edit = st.Page(r"edit.py", title="Edit", icon=":material/timeline:")
# bt = st.columns(7)[6].button("edit")
# st.columns(7)[6].page_link(edit, label="Edit")
bt = st.columns(7)[6].button("Edit Info")
if bt:
st.switch_page(edit)
# if bt:
# edit.run()
# history = st.Page(r"diseasesHistory.py", title="Diseases History", icon=":material/timeline:")
st.info(f"**First Name:** {fname}")
st.info(f"**Last Name:** {lname}")
st.info(f"**Email:** {email}")
st.info(f"**Birth Date:** {date}")
# st.info("**View History:** ")
# st.page_link(history, label="Reports")
# bt2 = st.button("Reports")
# if bt2:
# st.switch_page(history)