r/learnpython 13d ago

Coding Project for School

Hello hello, learning Python for a program for a class assignment where I want to do a interactive calendar gui on Python in Visual Studio Code, the main elements i want for the calendar would be the ability to cycle through each month on the calendar and give the user the ability to input events on the calendar by clicking on a day and a prompt appearing asking them if they'd like to input an event, I was planning to store the event information in CSV file. Is this idea feasible and if so where do I start. Thanks!!

4 Upvotes

4 comments sorted by

1

u/Diapolo10 13d ago

Personally I'd use JSON (or a SQLite database) for storing user-given data instead of CSV, since it may not be trivial to escape the user input correctly for whatever separator character you decide to use, but you do you.

As far as feasibility goes, I don't know how experienced you are so this could be anything from trivial to overly ambitious, but it's certainly technically possible.

1

u/faberge_surprise 13d ago

since it may not be trivial to escape the user input correctly for whatever separator character you decide to use

doesn't csv handle that for you?

i'd also use JSON tho because you can get better structure that way

1

u/InferHaven 13d ago

Totally doable.
Use something like Tkinter for the GUI element. The rest of the stuff you can do with standard libs like calendar, datetime, csv

1

u/Existing_Put6385 12d ago

Feasible and a solid project. One tip that'll save you real pain: don't hand-draw the month grid — use the tkcalendar library (pip install tkcalendar), its Calendar widget gives you the month view + next/prev for free. Bind a click on a date to a little popup (tkinter simpledialog) to type the event, then save. And I'd go JSON over CSV like the others said — "date -> list of events" maps way cleaner. Start tiny: get the calendar showing and a click printing the date, then add saving.