Shahrayar123 / Shahrayar123/Python-Projects

"Back" button in Update window doesn’t close the update window

Open
#320 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
582
Forks
441
PR merge metrics
No merged PRs in 30d

Description

Hi, I noticed a small UI issue with the Update student window.

When I open the Update window and click the “Back” button, the main window is shown again (which is correct), but the Update window is not closed. Instead, the code hides the View window:

def f6():
main_window.deiconify()
view_window.withdraw()

However, this function is used as the callback for the Update window’s Back button:

update_btn_back = Button(update_window, text="Back", width=10, font=f, command=f6)

So after clicking “Back”, both the main window and the Update window stay visible at the same time, which is confusing.

Expected behavior

Clicking the “Back” button in the Update window should:

Show the main window

Hide the Update window (not the View window)

Suggested fix

Replace view_window.withdraw() with update_window.withdraw():

def f6():
main_window.deiconify()
update_window.withdraw()

This way, the Back button works as expected for the Update window.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating f6 and the Update window's Back button callback shown in the issue. Change the callback so it shows the main window and hides the Update window rather than the View window. Done means clicking Back leaves the main window visible without the Update window also remaining open.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.