Skip to content

Commit 95d04aa

Browse files
author
Chloe White
committed
calendar app skeleton
1 parent be99875 commit 95d04aa

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

calendar_display/calendar_app.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import tkinter as tk
2+
from tkinter import messagebox
3+
import calendar
4+
5+
def main():
6+
root = tk.Tk()
7+
root.title("Calendar App")
8+
root.geometry("300x150")
9+
10+
tk.Label(root, text="Enter Year:").pack(pady=5)
11+
year_entry = tk.Entry(root)
12+
year_entry.pack(pady=5)
13+
14+
def show_calendar():
15+
# Placeholder function for showing calendar
16+
print("Show calendar function placeholder")
17+
18+
tk.Button(root, text="Show Calendar", command=show_calendar).pack(pady=5)
19+
tk.Button(root, text="Exit", command=root.destroy).pack(pady=5)
20+
21+
root.mainloop()
22+
23+
if __name__ == "__main__":
24+
main()

0 commit comments

Comments
 (0)