Skip to content

Conversation

@HariomSinghalPuri
Copy link

Calendar Application

A simple GUI calendar application built with Python and Tkinter that displays the calendar for any given year.

Features

  • User-friendly interface
  • Displays full year calendar in a clean format
  • Responsive design
    -Easy year input

Requirements

Python 3.12.6 Tkinter (usually comes with Python installation) 

How to Use

  • Run the application
  • Enter a year in the input field
  • Click "Show Calendar" button
    -A new window will open displaying the calendar for the entered year
    -Use the "Exit" button to close the application

Code Structure

The application consists of:

  • Main window with input field

  • Calendar display window that opens when showing a calendar

  • Simple error handling for year input


How to Run

python calendar.py 

Customization

You can easily customize:

  • Colors by modifying the bg (background) parameters
  • Fonts by changing the font parameters
  • Window sizes by adjusting the geometry values

Future Improvements

  • Add month-specific calendar views
  • Implement date selection functionality
  • Add event management features
  • Improve UI with modern styling

License

This project is open source and available under the MIT License.

@github-actions
Copy link
Contributor

👋 @HariomSinghalPuri 👋

We're delighted to have your pull request! Please take a moment to check our contributing guidelines and ensure you've filled out the PR template for a smooth process. We will review it soon.

@king04aman king04aman requested a review from Copilot June 1, 2025 17:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new GUI calendar application project and its documentation.

  • Introduces a Python/Tkinter calendar generator script.
  • Provides README with setup, usage, and customization details.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
README.md Added project overview, usage instructions, and metadata
Calendar.py Implemented main GUI and calendar display logic
Comments suppressed due to low confidence (2)

Projects/Calendar_Generator_YearWise/Calendar.py:66

  • [nitpick] Variable names should follow snake_case; rename 'Show' to something like 'show_button' for consistency and clarity.
Show = Button(root, text = "Show Calendar", fg = "Black", bg = "Light Green", command = showCal) 

Projects/Calendar_Generator_YearWise/Calendar.py:69

  • [nitpick] Rename 'Exit' to 'exit_button' or similar to follow snake_case conventions and avoid shadowing the built-in exit function.
Exit = Button(root, text = "Exit", fg = "Black", bg = "Light Green", command = exit) 
new_window.geometry('550x600')

# get method returns current text as string
fetch_year = int(year_field.get())
Copy link

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Converting the input directly to int may crash on invalid input; consider adding a try/except block to handle non-integer values gracefully.

Copilot uses AI. Check for mistakes.
---
## How to Run
```
python calendar_app.py
Copy link

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README references 'calendar_app.py', but the actual script file is named 'Calendar.py'. Update the command to 'python Calendar.py' to match the file name.

Copilot uses AI. Check for mistakes.
HariomSinghalPuri and others added 3 commits June 1, 2025 23:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant