()
| 1566 | ) |
| 1567 | |
| 1568 | def on_action_submit(): |
| 1569 | try: |
| 1570 | account_number = int(search_input.text().strip()) |
| 1571 | amount = int(amount_field.text().strip()) |
| 1572 | backend_action_fn(amount, account_number) |
| 1573 | name_field.setText("") |
| 1574 | balance_field.setText("") |
| 1575 | search_input.setText("") |
| 1576 | show_popup_message(stacked_widget, success_message, EMPLOYEE_MENU_PAGE) |
| 1577 | except ValueError: |
| 1578 | show_popup_message( |
| 1579 | stacked_widget, "Enter valid numeric amount.", page_index |
| 1580 | ) |
| 1581 | |
| 1582 | search_button.clicked.connect(on_search_submit) |
| 1583 | action_button.clicked.connect(on_action_submit) |
nothing calls this directly
no test coverage detected