Mrinank-Bhowmick / python-beginner-projects

Explore a collection of beginner-friendly Python projects that can be completed with minimal code. Perfect for learning the basics and improving your coding skills.
https://github.com/Mrinank-Bhowmick/python-beginner-projects/wiki
MIT License
1.18k stars 647 forks source link

Alarm Clock: application geometry size not fit all widgets #785

Open tcfh2016 opened 2 months ago

tcfh2016 commented 2 months ago

Issue Statement

When I run alarm_clock.py in my workstation and I got this below application window, which seems good but not right, as there was no "Stop Alarm" button displayed in this window:

image

Actually the "Stop Alarm" button has been defined at line#220 in source code:

button = Button(root, text="Stop Alarm", bg="red", fg="white", command=stop_alarm).pack( pady=30 )

Project address: https://github.com/Mrinank-Bhowmick/python-beginner-projects/tree/main/projects/Alarm%20Clock

Solution Description

The root cause for this issue was the window size is too small to display all widgets:

root.geometry("500x250")

Change the size from "500x250" to "500x300" can fix this issue:

image

Options for Fix

If issue/solution can be confirmed I can fix it, or someone else can be assigned to do the fix. @Mrinank-Bhowmick

Mrinank-Bhowmick commented 2 months ago

Sure fix it 👍