Skip to content

Update DigitalClock.py #477

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
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update DigitalClock.py #477

wants to merge 1 commit into from

Conversation

Om149
Copy link

@Om149 Om149 commented Aug 4, 2025

Used Segoe UI font and bold weight for better clarity.

Set background to a modern dark color (#1e1e2f).

Used cyan foreground (#00FFCC) for better readability and glow effect.

Added padding around the label for spacing.

Changed to 12-hour format for easier human readability (can revert to 24-hour if needed).

PR Title

Give a title to your PR

Summary

summary...

Description

The changes are as follows:

  • Change 1
  • Change 2

Checks

in the repository

  • Made no changes that degrades the functioning of the repository
  • Gave each commit a better title (unlike updated README.md)

in the PR

  • Followed the format of the pull_request_template
  • Made the Pull Request in a small level (for the creator's wellfare)
  • Tested the changes you made

Thank You,

[Your Name]

Used Segoe UI font and bold weight for better clarity.

Set background to a modern dark color (#1e1e2f).

Used cyan foreground (#00FFCC) for better readability and glow effect.

Added padding around the label for spacing.

Changed to 12-hour format for easier human readability (can revert to 24-hour if needed).
Copy link

@Sudharsan-T Sudharsan-T left a comment

Choose a reason for hiding this comment

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

great job!

@DhanushNehru DhanushNehru requested a review from Copilot August 16, 2025 06:14
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

This PR modernizes the Digital Clock application by improving its visual appearance and user experience. The changes focus on updating the UI styling, font selection, and time format display.

Key changes include:

  • Updated visual styling with modern dark theme and cyan text color
  • Changed from 24-hour to 12-hour time format for better readability
  • Improved code organization with better naming and comments

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

string = strftime('%H: %M: %S %p')
clockTime.config(text=string)
clockTime.after(1000, time)
string = strftime('%I:%M:%S %p') # 12-hour format with AM/PM
Copy link
Preview

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

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

The comment mentions 'AM/PM' but the format string '%I:%M:%S %p' will display AM/PM at the end. However, the original code used '%H: %M: %S %p' which mixed 24-hour format (%H) with AM/PM (%p), which doesn't make sense. The new format is correct, but the original logic suggests 24-hour format was intended.

Copilot uses AI. Check for mistakes.

top.resizable(0,0)
# Create main window
top = tk.Tk()
top.title('🕒 Digital Clock')
Copy link
Preview

Copilot AI Aug 16, 2025

Choose a reason for hiding this comment

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

[nitpick] Using emojis in window titles may cause display issues on some operating systems or environments that don't support Unicode properly. Consider using plain text for better compatibility.

Suggested change
top.title('🕒 Digital Clock')
top.title('Digital Clock')

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants