import streamlit as st | |
import calendar | |
# Function to display the full calendar for a specific month and year | |
def display_full_calendar(year, month): | |
# Display the entire month calendar | |
st.write(f"### {calendar.month_name[month]} {year}") | |
st.text(calendar.month(year, month)) | |
# Streamlit app title | |
st.title('2025 Calendar Viewer') | |
# Get user input for the month and year (default to 2025) | |
year = 2025 | |
month = st.slider('Select month:', 1, 12, 1) | |
# Display the calendar for the selected month of the year 2025 | |
display_full_calendar(year, month) | |
# Optionally, display all months in 2025 | |
if st.checkbox('Show all months for 2025'): | |
for month in range(1, 13): | |
display_full_calendar(year, month) | |