MCPcopy Index your code
hub / github.com/geekcomputers/Python / show_total_money

Function show_total_money

bank_managment_system/QTFrontend.py:691–725  ·  view source on GitHub ↗
(parent, title)

Source from the content-addressed store, hash-verified

689
690
691def show_total_money(parent, title):
692 page, main_layout = create_page_with_header(parent, title)
693
694 content_frame = create_styled_frame(
695 page, style="background-color: #f9f9f9; border-radius: 10px; padding: 15px;"
696 )
697 content_layout = QtWidgets.QVBoxLayout(content_frame)
698 content_layout.setProperty("spacing", 10)
699 all = backend.all_money()
700
701 # Total money label
702 total_money_label = QtWidgets.QLabel(f"Total Money: ${all}", content_frame)
703 total_money_label.setStyleSheet(
704 "font-size: 24px; font-weight: bold; color: #333333;"
705 )
706 content_layout.addWidget(total_money_label, alignment=QtCore.Qt.AlignCenter)
707 # Back button
708 back_button = QtWidgets.QPushButton("Back", content_frame)
709 back_button.setStyleSheet("""
710 QPushButton {
711 background-color: #6c757d;
712 color: white;
713 border: none;
714 border-radius: 4px;
715 padding: 8px 16px;
716 font-size: 14px;
717 }
718 QPushButton:hover {
719 background-color: #5a6268;
720 }
721 """)
722 back_button.clicked.connect(lambda: parent.setCurrentIndex(ADMIN_MENU_PAGE))
723 content_layout.addWidget(back_button, alignment=QtCore.Qt.AlignCenter)
724 main_layout.addWidget(content_frame)
725 return page
726
727
728# -----------employees menu pages-----------

Callers 1

setup_main_windowFunction · 0.85

Calls 3

create_page_with_headerFunction · 0.85
create_styled_frameFunction · 0.85
all_moneyMethod · 0.80

Tested by

no test coverage detected