(parent, title)
| 689 | |
| 690 | |
| 691 | def 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----------- |
no test coverage detected