Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add Calendar_Generator_YearWise project (Issue No : #106) #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
HariomSinghalPuri wants to merge 4 commits into king04aman:main
base: main
Choose a base branch
Loading
from HariomSinghalPuri:calendar-generator

Conversation

Copy link

@HariomSinghalPuri HariomSinghalPuri commented May 31, 2025

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.

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.

Copy link

@Copilot 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
Preview

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
Preview

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
Reviewers

Copilot code review Copilot Copilot left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /