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

Function on_action_submit

bank_managment_system/QTFrontend.py:1568–1580  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

show_popup_messageFunction · 0.85

Tested by

no test coverage detected