Skip to content

Bank managment system pratyanj #2730

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

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update show_popup_message function
  • Loading branch information
pratyanj committed Jun 12, 2025
commit 0b07b935bec2b9ec6dba884399ee1f4fe0539b9e
4 changes: 2 additions & 2 deletions bank_managment_system/QTFrontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def create_input_field(parent, label_text, min_label_size=(120, 0)):
layout.addWidget(line_edit)
return frame, line_edit

def show_popup_message(parent, message: str, page: int = None, show_cancel: bool = True):
def show_popup_message(parent, message: str, page: int = None, show_cancel: bool = True,cancel_page: int = HOME_PAGE):
"""Reusable popup message box.

Args:
Expand Down Expand Up @@ -141,7 +141,7 @@ def on_accept():

def on_reject():
if page is not None:
parent.setCurrentIndex(page)
parent.setCurrentIndex(cancel_page)
dialog.reject()

button_box.accepted.connect(on_accept)
Expand Down